Branch Coverage

blib/lib/Trace/Mask/Test.pm
Criterion Covered Total %
branch 31 50 62.0


line true false branch
30 0 11 unless $convert and ref $convert and &reftype($convert) eq 'CODE'
33 0 11 unless $trace and ref $trace and &reftype($trace) eq 'CODE'
37 0 11 if (keys %params) { }
42 0 0 if not ref $test and $test =~ /^test_/ and not $test =~ /test_tracer/
43 0 0 if ($sub and ref $sub and &reftype($sub) eq 'CODE') { }
51 0 0 if @bad
56 1153 154 unless $sym =~ /^test_/
57 11 143 if $sym =~ /test_tracer/
88 26 117 if ($type eq 'warning') { }
26 91 elsif ($type eq 'sigwarn') { }
90 0 26 if $warning
98 0 26 unless (open STDERR, '>', \$warning)
108 52 91 if ($type eq 'exception') { }
39 52 elsif ($type eq 'return') { }
52 0 elsif ($type eq 'warning' or $type eq 'sigwarn') { }
109 0 52 if $ok
114 0 39 unless $out
118 0 52 unless $warning
125 0 143 unless $ok
131 0 572 ref $_ ? :
142 140 542 unless ($result->[$i][1] and @{$result->[$i][1];})
148 3162 4340 if (exists $result->[$i][0][$j]) { }
149 750 2412 if ref $result->[$i][0][$j] and $result->[$i][0][$j] == \&Trace::Mask::Test::NA
162 0 143 unless $ok
170 11 0 unless wantarray