| File: | t/01-setup_before_route_hooks.t |
| Coverage: | 100.0% |
| line | stmt | time | code |
|---|---|---|---|
| 1 | 1 1 1 | 8044 3 65 | use strict; |
| 2 | 1 1 1 | 8 2 58 | use warnings; |
| 3 | 1 1 1 | 703 189 128 | use Dancer::Plugin::BeforeRoute; |
| 4 | |||
| 5 | 1 1 1 | 972 32329 14 | use Test::More tests => 2; # last test to print |
| 6 | |||
| 7 | 1 | 405307 | ok _setup() , "Run at first name"; |
| 8 | 1 | 531 | is _setup(), undef, "Not running at second time"; |
| 9 | |||
| 10 | sub _setup { | ||
| 11 | 2 | 11 | return Dancer::Plugin::BeforeRoute::_setup_before_route_hooks(); |
| 12 | } | ||