Condition Coverage

lib/Template/Stash.pm
Criterion Covered Total %
condition 54 87 62.0


and 2 conditions

line l !l condition
212 297 7 $ident =~ /\./ and $ident = [map({s/\(.*$//; $_, 0;} split(/\./, $ident, 0))]
259 500 1 $ident =~ /\./ and $ident = [map({s/\(.*$//; $_, 0;} split(/\./, $ident, 0))]

and 3 conditions

line !l l&&!r l&&r condition
154 1512 0 1 defined $import and ref $import eq 'HASH'
339 1319 0 1 defined $import and ref $import eq 'HASH'
383 13 0 2 $args and ref $args eq 'ARRAY'
422 345 37 637 &blessed($root) && $root->isa(ref $self)
432 0 0 1019 defined $root and defined $item
435 0 1019 0 $PRIVATE and $item =~ /$PRIVATE/
437 93 0 37 &blessed($root) and $root->can('can')
1 0 92 $value = $Template::Stash::SCALAR_OPS->{$item} and not $lvalue
0 0 1 $value = $Template::Stash::LIST_OPS->{$item} and not $lvalue
444 207 11 30 $value = $Template::Stash::HASH_OPS->{$item} and not $atroot
594 0 0 509 $root and defined $item
597 0 509 0 $PRIVATE and $item =~ /$PRIVATE/
599 0 0 1 $rootref eq 'ARRAY' and $item =~ /^-?\d+$/
602 508 0 0 $default and $root->{$item}
607 1 0 0 $default and $root->{$item}
612 0 0 0 $default and $root->$item

or 2 conditions

line l !l condition
150 1382 131 $params ||= {}
382 2 13 shift @input || 0
425 184 835 $args ||= []
426 11 1008 $lvalue ||= 0
590 0 509 $args ||= []
591 0 509 $default ||= 0
654 0 0 $indent ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
212 304 0 304 ref $ident eq 'ARRAY' or $ident =~ /\./ and $ident = [map({s/\(.*$//; $_, 0;} split(/\./, $ident, 0))]
259 8 0 501 ref $ident eq 'ARRAY' or $ident =~ /\./ and $ident = [map({s/\(.*$//; $_, 0;} split(/\./, $ident, 0))]
437 637 103 279 $atroot or $rootref eq 'HASH'
444 30 10 208 $value = $Template::Stash::HASH_OPS->{$item} and not $atroot or $item eq 'import'
499 12 0 0 ref $root || $root
500 0 1 11 ref $@ or not $@ =~ /Can't locate object method "\Q$item\E" via package "\Q$class\E"/
599 8 500 1 $rootref eq 'HASH' or $atroot