Branch Coverage

blib/lib/Hash/AsObject.pm
Criterion Covered Total %
branch 37 42 88.1


line true false branch
9 2 5 unless ref $_[0]
11 2 3 scalar @_ > 1 ? :
17 1 8 unless @_ == 2
25 3 2 if (scalar @_ > 1) { }
27 0 3 unless defined $v
32 0 5 if (ref $v eq 'HASH') { }
44 9 5 unless ref $_[0]
45 2 3 scalar @_ > 1 ? :
53 29 6 if (defined $key) { }
70 19 16 if (ref $invocant eq '') { }
2 14 elsif ($key eq 'DESTROY') { }
72 0 19 if ($key eq 'import') { }
16 3 elsif ($key eq 'new') { }
77 7 9 scalar @_ == 1 ? :
101 0 2 unless scalar @_ or exists $$invocant{'DESTROY'}
110 0 16 if scalar @_ > 1
114 5 11 if ($key eq 'AUTOLOAD') { }
117 2 3 scalar @_ ? :
124 12 24 if (scalar @_ > 1) { }
126 3 9 unless defined $v
131 3 30 if (ref $v eq 'HASH') { }