Branch Coverage

blib/lib/Text/TemplateLite/Standard.pm
Criterion Covered Total %
branch 74 116 63.7


line true false branch
182 122 19 if ($type eq 'CODE') { }
19 0 elsif ($type eq 'ARRAY') { }
204 0 81 unless looks_like_number $_
281 1 4 unless length $value and $value ne '0'
301 1 4 if length $value and $value ne '0'
318 0 4 length $value && $value ne '0' ? :
365 3 7 if length $cond and $cond ne '0'
369 3 0 if @args
370 0 0 wantarray ? :
405 3 2 if ($name ne '*?' and not $name =~ /^do/) { }
409 1 0 wantarray ? :
1 2 unless length $value and $value ne '0'
416 0 10 if (defined $max_len) { }
419 0 0 if $max_len < 0
426 4 0 wantarray ? :
476 0 8 unless @args
477 2 6 if @args == 1
478 2 4 if @args == 2
513 1 2 if (@$args > 2)
515 1 0 if looks_like_number $nth
535 0 0 unless looks_like_number($args[1])
537 0 0 if ($args[1] and defined(my $max_len = $$renderer{'limits'}{'step_length'}))
540 0 0 if ($max_times < $args[1])
542 0 0 unless ($max_times)
566 0 7 if @args > 1 and not looks_like_number($args[1])
567 0 7 if @args > 2 and not looks_like_number($args[2])
570 0 7 unless @args
571 1 6 if @args == 1
572 2 4 if @args == 2
602 21 0 defined $args[0] ? :
21 0 defined $args[1] ? :
647 26 1 if looks_like_number $value
668 2 3 unless @args
669 1 2 if @args == 1
687 18 0 if looks_like_number $value
704 7 3 @args == 2 && $args[1] ? :
718 1 3 @args == 2 && $args[1] ? :
735 3 0 if looks_like_number $value
755 5 0 if looks_like_number $value
775 5 0 if looks_like_number $value
791 2 2 looks_like_number $value ? :
804 3 3 looks_like_number $value ? :
819 6 0 if (looks_like_number($value = $renderer->execute_sequence($_)))
820 4 2 if not defined $max or $value > $max
824 2 2 defined $max ? :
839 6 0 if (looks_like_number($value = $renderer->execute_sequence($_)))
840 4 2 if not defined $min or $value < $min
844 2 2 defined $min ? :
903 3 0 if (@$args)
939 0 0 wantarray ? :
0 1 unless $ext_rend
951 1 0 if (@args)
954 1 0 defined $value ? :
957 0 0 wantarray ? :
990 5 25 if (@args)
992 3 2 defined $value ? :
995 25 0 wantarray ? :
1011 1 0 wantarray ? :