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 | 580058 | use strict; | |||
1 | 3 | ||||||
1 | 27 | ||||||
4 | 1 | 1 | 5 | use warnings; | |||
1 | 2 | ||||||
1 | 35 | ||||||
5 | 1 | 1 | 6 | use base 'Exporter'; | |||
1 | 2 | ||||||
1 | 200 | ||||||
6 | |||||||
7 | our @EXPORT_OK = ('template'); | ||||||
8 | |||||||
9 | sub template { | ||||||
10 | 3 | 3 | 0 | 289 | my $template = shift; | ||
11 | |||||||
12 | 3 | 3 | 18 | return sub { shift->render($template, 'mojo.maybe' => 1) }; | |||
3 | 36075 | ||||||
13 | } | ||||||
14 | |||||||
15 | 1; | ||||||
16 | |||||||
17 | =head1 Mojolicious::Plugin::AutoRoute::Util | ||||||
18 | |||||||
19 | template function. | ||||||
20 |