lib/Petal/Tiny.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 49 | 72 | 68.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
60 | 0 | 1 | 3 | defined $thing and $thing =~ /(\<|\n|\>)/ |
256 | 0 | 2 | 1 | $last && $idx == $#$array |
266 | 3 | 13 | 7 | $last && $idx == $#$array |
331 | 53 | 2 | 0 | $omit and not $end |
419 | 123 | 212 | 7 | not @path and @args == 1 |
432 | 123 | 212 | 1 | not @path and @args |
441 | 20 | 0 | 0 | ref $arg and $self->reftype($arg) eq 'ARRAY' |
468 | 0 | 57 | 7 | $open and $close |
501 | 528 | 914 | 758 | not $elem =~ /^<\!/ || $elem =~ m[^] || $elem =~ m[/>$] || $elem =~ /^<\?/ and $elem =~ /^ |
517 | 0 | 1167 | 499 | not $elem =~ /^<\!/ and $elem =~ m[^] |
1167 | 0 | 499 | not $elem =~ /^<\!/ and $elem =~ m[^] and not $elem =~ m[/>$] | |
534 | 0 | 572 | 32 | not $elem =~ /^<\!/ || $elem =~ m[^] and $elem =~ m[/>$] |
572 | 0 | 32 | not $elem =~ /^<\!/ || $elem =~ m[^] and $elem =~ m[/>$] and $elem =~ /^ |
line | l | !l | condition |
---|---|---|---|
86 | 328 | 0 | shift() || {} |
465 | 64 | 0 | delete $$node{'_open'} || 0 |
466 | 7 | 57 | delete $$node{'_close'} || 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
57 | 0 | 4 | 0 | ref $class || $class |
167 | 259 | 16 | 0 | tag_open($tag) || tag_self_close($tag) |
169 | 10 | 0 | 265 | $ns || $TAL |
267 | 7 | 5 | 11 | $$context{'repeat'}{'start'} || $$context{'repeat'}{'end'} |
345 | 236 | 0 | 0 | shift() || confess('resolve_expression() : no context') |
363 | 282 | 0 | 0 | shift() || confess('resolve() : no context') |
501 | 29 | 0 | 1672 | $elem =~ /^<\!/ || $elem =~ m[^] || $elem =~ m[/>$] || $elem =~ /^<\?/ |
534 | 0 | 0 | 604 | $elem =~ /^<\!/ || $elem =~ m[^] |
563 | 51 | 10 | 169 | not $string or ref $string |