Branch Coverage

blib/lib/Test/Struct.pm
Criterion Covered Total %
branch 23 66 34.8


line true false branch
22 1 0 unless eval 'use Data::Dump::Streamer qw(regex); 1'
34 0 0 if ($arg =~ /^(no_plan|skip_all)$/) { }
0 0 elsif ($arg eq 'tests') { }
0 0 elsif ($arg eq 'import') { }
51 2 0 defined $_[0] ? :
55 0 0 defined $_[0] ? :
61 0 0 if (@_ > 2)
62 0 0 $noqquote ? :
72 0 1 if ($v =~ /^\$\{.*\}$/ or $v =~ /\w$/) { }
85 0 26 if ($nok)
86 0 0 $t1 ? :
96 0 6 if ($nok)
114 0 4 if _bool_ne(defined $o1, defined $o2, 'defined value', $n, \@error)
117 0 4 unless defined $o1
122 0 0 if $$state{'sv_seen1'}{$ra1} and $$state{'sv_seen2'}{$ra2} and $$state{'sv_seen1'}{$ra1} eq $$state{'sv_seen2'}{$ra2}
131 0 4 if ($t1 ne $t2)
132 0 0 if ($t1 eq $n) { }
0 0 elsif ($t2 eq $n) { }
149 0 4 if _bool_ne(!!ref($o1), !!ref($o2), 'value isa reference', $n, \@error)
153 0 4 unless (ref $o1)
162 0 0 if $$state{'rv_seen1'}{$ra1} and $$state{'rv_seen2'}{$ra2} and $$state{'rv_seen1'}{$ra1} eq $$state{'rv_seen2'}{$ra2}
170 0 4 if ($t1 ne $t2)
171 0 0 if ($t1 eq $n) { }
0 0 elsif ($t2 eq $n) { }
189 1 3 if defined $t1
198 0 4 if _ne($rt, $t2, 'reftype', $n, \@error)
202 1 3 if ($rt eq 'ARRAY') { }
1 2 elsif ($rt eq 'HASH') { }
1 1 elsif ($rt eq 'REF' or $rt eq 'SCALAR') { }
217 0 1 if _bool_ne(exists $$o1{$key}, exists $$o2{$key}, 'key ' . _qquote($key), '%{' . $n . '}', \@error)
227 0 1 if ($t1 and $t2) { }
241 0 1 if @_ == 3
245 0 0 if @errors