Branch Coverage

blib/lib/Test/Taint.pm
Criterion Covered Total %
branch 40 44 90.9


line true false branch
87 10 94 unless defined $node
89 35 59 unless my($realpack, $realtype, $id) = overload::StrVal($node) =~ /\A(?:(.+)\=)?(HASH|ARRAY|GLOB|SCALAR|REF)\((0x[[:xdigit:]]+)\)\z/
93 4 4 $realtype eq 'REF' ? :
11 8 $realtype eq 'SCALAR' ? :
23 19 $realtype eq 'ARRAY' ? :
17 42 $realtype eq 'HASH' ? :
3 56 if (my $tied = $realtype eq 'HASH' ? tied %{$node;} : ($realtype eq 'ARRAY' ? tied @{$node;} : ($realtype eq 'SCALAR' ? tied ${$node;} : ($realtype eq 'REF' ? tied ${$node;} : undef))))
103 1 55 if $seen{join $;, $realpack, $realtype, $id}++
110 4 4 $realtype eq 'REF' ? :
10 8 $realtype eq 'SCALAR' ? :
22 18 $realtype eq 'ARRAY' ? :
15 40 $realtype eq 'HASH' ? :
131 2 3 @_ ? :
261 6 3 if not defined $_ or ref $_ or &Scalar::Util::readonly($_) or tainted($_)
292 29 29 unless ref $_ or &Scalar::Util::readonly($_)
326 6 2 if tainted($Test::Taint::TAINT)
330 1 1 if tainted($Test::Taint::TAINT)
337 0 71 unless defined $_
338 71 0 if (open FOO, $_)
340 68 3 if (defined sysread(FOO, $potentially_tainted_data, 1))
342 0 68 if tainted($Test::Taint::TAINT)
350 0 8 if length $Test::Taint::TAINT