blib/lib/Mojolicious/resources/templates/mojo/command/resources/helper.ep | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 12 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | n/a | ||
total | 16 | 16 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | 2 | 2 | 4433 | % my $a = shift; | |||
2 | 2 | 6 | |||||
2 | 2 | 13 | |||||
2 | 2 | 169 | |||||
2 | 5 | ||||||
2 | 448 | ||||||
2 | 2868 | ||||||
2 | 5 | ||||||
2 | 12 | ||||||
2 | 164 | ||||||
2 | 5 | ||||||
2 | 404 | ||||||
2 | |||||||
3 | # Helper for Model <%= $a->{class} %> | ||||||
4 | Mojo::Loader::load_class '<%= $a->{class} %>'; | ||||||
5 | $self->helper(<%= $a->{t} %> => sub { | ||||||
6 | my $<%= $a->{t} %> = <%= $a->{class} | ||||||
7 | %>->new(<%= $a->{db_helper} %> => shift-><%= $a->{db_helper} %>); | ||||||
8 | }); | ||||||
9 |