Branch Coverage

blib/lib/Devel/Dumpvar.pm
Criterion Covered Total %
branch 44 70 62.8


line true false branch
33 2 0 if (defined $options{'to'})
44 0 2 unless @_
48 0 2 unless (defined $to)
55 0 2 if (&Scalar::Util::blessed($to) and $to->can('print'))
61 2 0 if (not ref $to and $to eq 'return')
79 9 0 ref $_[0] ? :
84 9 0 if $self->_return
86 8 1 if (@_) { }
97 9 0 $self->_return ? :
124 1 14 unless (@$array_ref)
132 28 10 unless (ref $value)
154 6 12 unless (ref $value)
175 25 0 ref $_[0] ? :
180 0 25 if (ref $value eq 'Regexp')
187 2 23 if ($$self{'seen'}{$addr}++)
197 3 20 if ($type eq 'REF') { }
9 11 elsif ($type eq 'SCALAR') { }
7 4 elsif ($type eq 'ARRAY') { }
4 0 elsif ($type eq 'HASH') { }
0 0 elsif ($type eq 'CODE') { }
228 2 41 unless defined $v
229 0 41 unless length $v
232 28 13 if (&Scalar::Util::looks_like_number($v))
246 0 13 if ($v =~ /[\000-\011\013-\037\177]/) { }
254 13 0 if ($tick eq q[']) { }
281 0 61 $_ > 255 ? :
288 25 0 ref $_[0] ? :
292 0 25 if (ref $value eq 'Regexp')
298 0 25 unless ($type =~ /^(?:SCALAR|ARRAY|HASH|REF|CODE)$/)
302 14 11 defined $class ? :
309 72 0 defined $_[0] ? :
312 0 72 unless $$self{'to'}
314 72 0 if ($$self{'to'} eq 'return') { }
0 0 elsif (&Scalar::Util::blessed($$self{'to'}) and $$self{'to'}->can('print')) { }
332 18 0 if defined $$self{'to'} and not ref $$self{'to'}