Branch Coverage

blib/lib/Hash/Convert.pm
Criterion Covered Total %
branch 40 44 90.9


line true false branch
41 47 60 if (scalar @$valid == scalar keys %$cmd_map)
51 2 34 if (my $pass = $$opts{'pass'})
52 1 1 unless ref $pass
68 0 47 unless ($self->_validate_cmd(\%cmds))
71 32 15 if ($cmds{'from'} and not $cmds{'via'})
72 1 31 if (ref $$rule{'from'} eq 'ARRAY' and scalar @{$$rule{'from'};} != 1)
77 8 38 if ($cmds{'contain'}) { }
81 34 4 if $$rule{'from'} and ref $$rule{'from'} ne 'ARRAY'
90 25 2 if (@before and scalar @before == 1 and ref $before[0] eq 'HASH') { }
2 0 elsif (@before and scalar @before % 2 == 0) { }
111 6 40 if (exists $$rule{'via'}) { }
31 9 elsif (exists $$rule{'from'}) { }
8 1 elsif (exists $$rule{'contain'}) { }
1 0 elsif (exists $$rule{'define'}) { }
134 22 15 if ($exists_size == scalar @$names)
143 17 14 if ($self->_is_all_exists($before, $$rule{'from'})) { }
7 7 elsif (exists $$rule{'default'}) { }
153 5 1 if ($self->_is_all_exists($before, $$rule{'from'})) { }
1 0 elsif (exists $$rule{'default'}) { }
170 3 5 if (not %$value) { }
171 2 1 if (exists $$rule{'default'}) { }
186 1 9 if (ref $default eq 'CODE')