Branch Coverage

blib/lib/Venus/Hash.pm
Criterion Covered Total %
branch 56 86 65.1


line true false branch
19 0 52 if (CORE::keys %$data == 1 and exists $data->{'value'})
34 0 2 unless $code
42 0 8 unless &$code($index, $value)
44 0 8 if $failed
47 0 2 $failed ? :
55 0 2 unless $code
63 0 8 if &$code($index, $value)
65 0 8 if $found
68 0 2 $found ? :
112 0 2 unless $code
123 0 2 wantarray ? :
141 1 1 exists $data->{$key} ? :
151 6 122 if (ref $item eq 'ARRAY') { }
122 0 elsif (ref $item eq 'HASH') { }
152 0 6 unless ($args[$i] =~ /^\d+$/u)
170 7 78 wantarray ? :
176 314 4 unless @args
188 0 3 unless $code
196 8 4 if &$code($index, $value)
199 0 3 wantarray ? :
212 2 8 if $i > $#keys
213 4 4 wantarray ? :
234 1 1 wantarray ? :
242 0 3 unless $code
253 0 3 wantarray ? :
271 0 2 unless $code
279 0 8 if &$code($index, $value)
281 0 8 if $found
284 0 2 $found ? :
292 0 2 unless $code
300 2 6 if &$code($index, $value)
302 0 8 if $found > 1
305 2 0 $found == 1 ? :
315 0 1 wantarray ? :
323 6 75 wantarray ? :
336 0 13 unless defined $path
341 1 12 if ref $path eq "ARRAY"
344 1 12 if ref $value eq "ARRAY"
346 11 2 if (ref $into eq "SCALAR")
353 0 4 wantarray ? :
392 0 15 unless @args
394 0 15 if @args == 1 and ref $args[0] eq "HASH"
398 0 15 unless defined $index