blib/lib/Mojolicious/Plugin/AutoRoute/Util.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 12 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 0 | 1 | 0.0 |
total | 17 | 18 | 94.4 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Mojolicious::Plugin::AutoRoute::Util; | ||||||
2 | |||||||
3 | 1 | 1 | 324490 | use strict; | |||
1 | 2 | ||||||
1 | 36 | ||||||
4 | 1 | 1 | 5 | use warnings; | |||
1 | 1 | ||||||
1 | 40 | ||||||
5 | 1 | 1 | 6 | use base 'Exporter'; | |||
1 | 6 | ||||||
1 | 184 | ||||||
6 | |||||||
7 | our @EXPORT_OK = ('template'); | ||||||
8 | |||||||
9 | sub template { | ||||||
10 | 3 | 3 | 0 | 219 | my $template = shift; | ||
11 | |||||||
12 | 3 | 3 | 17 | return sub { shift->render($template, 'mojo.maybe' => 1) }; | |||
3 | 30704 | ||||||
13 | } | ||||||
14 | |||||||
15 | 1; | ||||||
16 | |||||||
17 | =head1 Mojolicious::Plugin::AutoRoute::Util | ||||||
18 | |||||||
19 | template function. | ||||||
20 |