lib/Perlmazing/Perlmazing/Precompile/not_empty.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 6 | 100.0 |
branch | 2 | 2 | 100.0 |
condition | 3 | 3 | 100.0 |
subroutine | 2 | 2 | 100.0 |
pod | n/a | ||
total | 13 | 13 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | 32 | 32 | 363 | use Perlmazing; | |||
32 | 90 | ||||||
32 | 189 | ||||||
2 | |||||||
3 | sub main ($) { | ||||||
4 | 15 | 15 | 1951 | my $x = shift(); | |||
5 | 15 | 100 | 100 | 92 | return 0 unless (defined($x) and length($x)); | ||
6 | 9 | 38 | return 1; | ||||
7 | } | ||||||
8 |