Branch Coverage

blib/lib/Data/Checker.pm
Criterion Covered Total %
branch 43 54 79.6


line true false branch
48 0 0 if (defined $n and $n =~ /^\d+$/) { }
66 21 2 if (ref $data eq 'ARRAY') { }
2 0 elsif (ref $data eq 'HASH') { }
79 0 23 if (not defined $type) { }
1 22 elsif (ref $type eq 'CODE') { }
102 22 110 unless $name =~ /^(.*)::(.+)$/
104 0 110 unless defined $mod
108 47 41 if ($mod ne 'main' and $mod ne $caller and not &is_loaded($mod))
111 44 3 unless eval "require $mod"
117 22 44 if (defined &{$name;})
123 0 22 unless defined $func
129 0 23 if ($$self{'parallel'} != 1) { }
178 33 24 if (defined $err and @$err) { }
184 4 53 if (defined $warn and @$warn)
187 4 53 if (defined $info and @$info)
192 21 2 if ($wantlist) { }
207 88 135 if exists $$check_opts{$label}
214 25 216 if (defined $label and exists $$check_opts{$label} and exists $$check_opts{$label}{$opt}) { }
0 216 elsif (exists $$check_opts{$opt}) { }
237 0 29 if (ref $mess eq 'ARRAY') { }
246 0 29 if ($level eq 'info') { }
0 29 elsif ($level eq 'warn') { }
264 92 30 if not $label or $self->check_performed($check_opts, $label)
266 30 92 unless $do_check
273 44 48 unless defined $negate_fail
277 23 69 if (not $negate || $value) { }
6 120 elsif ($negate and $value) { }