Branch Coverage

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


line true false branch
19 0 50 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 ? :
122 0 2 unless $code
133 0 2 wantarray ? :
151 1 1 exists $data->{$key} ? :
161 6 120 if (ref $item eq 'ARRAY') { }
120 0 elsif (ref $item eq 'HASH') { }
162 0 6 unless ($args[$i] =~ /^\d+$/u)
180 7 76 wantarray ? :
186 296 4 unless @args
198 0 3 unless $code
206 8 4 if &$code($index, $value)
209 0 3 wantarray ? :
222 2 8 if $i > $#keys
223 4 4 wantarray ? :
244 1 1 wantarray ? :
252 0 3 unless $code
263 0 3 wantarray ? :
281 0 2 unless $code
289 0 8 if &$code($index, $value)
291 0 8 if $found
294 0 2 $found ? :
302 0 2 unless $code
310 2 6 if &$code($index, $value)
312 0 8 if $found > 1
315 2 0 $found == 1 ? :
325 0 1 wantarray ? :
333 6 73 wantarray ? :
346 0 13 unless defined $path
351 1 12 if ref $path eq "ARRAY"
354 1 12 if ref $value eq "ARRAY"
356 11 2 if (ref $into eq "SCALAR")
363 0 4 wantarray ? :
402 0 15 unless @args
404 0 15 if @args == 1 and ref $args[0] eq "HASH"
408 0 15 unless defined $index