blib/lib/Templ/Parser/Print.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 12 | 14 | 85.7 |
branch | n/a | ||
condition | n/a | ||
subroutine | 6 | 8 | 75.0 |
pod | 0 | 5 | 0.0 |
total | 18 | 27 | 66.6 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | |||||||
2 | package Templ::Parser::Print; | ||||||
3 | 1 | 1 | 5 | use base 'Templ::Parser'; | |||
1 | 3 | ||||||
1 | 552 | ||||||
4 | |||||||
5 | 1 | 1 | 5 | use strict; | |||
1 | 2 | ||||||
1 | 20 | ||||||
6 | 1 | 1 | 5 | use warnings; | |||
1 | 2 | ||||||
1 | 108 | ||||||
7 | |||||||
8 | 0 | 0 | 0 | 0 | sub pretty_header { return "use feature 'say';\n"; } | ||
9 | 1 | 1 | 0 | 3 | sub header { return 'print '; } | ||
10 | 6 | 6 | 0 | 13 | sub append { return 'print '; } | ||
11 | 0 | 0 | 0 | 0 | sub append_pretty { return 'say '; } | ||
12 | 1 | 1 | 0 | 3 | sub footer { return ";\n"; } | ||
13 | |||||||
14 | 1; |