Branch Coverage

blib/lib/Test/Stream/Plugin/Core.pm
Criterion Covered Total %
branch 65 74 87.8


line true false branch
40 1 2 unless ($format and eval { do { $format->can('encoding') } })
41 1 0 unless defined $format
69 715 30 $bool ? :
76 1 27 unless defined $got
77 1 27 unless defined $exp
80 2 26 if (not ref $got) { }
2 24 elsif (not ref $exp) { }
93 23 5 $bool ? :
100 1 5 unless defined $got
101 1 5 unless defined $exp
104 2 4 if (not ref $got) { }
2 2 elsif (not ref $exp) { }
117 1 5 $bool ? :
136 0 0 if $ctx
143 0 0 if $ctx
168 3 3 unless $code
200 1 279 unless eval qq[#line $line "$file"\n\$bool = \$thing->$op(\$item); 1]
201 273 6 if $bool
209 108 59 @items == 1 ? :
227 2 11 unless ($gottype)
233 1 10 if ($wanttype and $gottype ne $wanttype)
252 212 40 if (my $glob = $stash->{$name})
254 210 2 if defined $val
334 2 11 unless ($type)
348 2 11 unless $lived
350 7 6 if ($test and $lived)
362 2 4 if ($type eq 'str') { }
2 2 elsif ($type eq 'num') { }
363 2 0 defined $got ? :
364 2 0 defined $exp ? :
367 2 0 defined $got ? :
368 2 0 defined $exp ? :
375 3 3 ref $got ? :
376 3 3 ref $exp ? :
385 3 3 if ($show_both) { }
386 2 1 $lived ? :
395 2 1 $lived ? :