| 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 | 3458 | % my $a = shift; | |||
| 2 | 2 | 4 | |||||
| 2 | 2 | 14 | |||||
| 2 | 2 | 153 | |||||
| 2 | 3 | ||||||
| 2 | 407 | ||||||
| 2 | 2774 | ||||||
| 2 | 4 | ||||||
| 2 | 11 | ||||||
| 2 | 147 | ||||||
| 2 | 5 | ||||||
| 2 | 386 | ||||||
| 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 |