Branch Coverage

blib/lib/Data/Checker.pm
Criterion Covered Total %
branch 46 66 69.7


line true false branch
48 2 0 if (defined $n and $n =~ /^\d+$/) { }
66 24 2 if (ref $data eq 'ARRAY') { }
2 0 elsif (ref $data eq 'HASH') { }
79 0 26 if (not defined $type) { }
1 25 elsif (ref $type eq 'CODE') { }
102 25 125 unless $name =~ /^(.*)::(.+)$/
104 0 125 unless defined $mod
108 55 45 if ($mod ne 'main' and $mod ne $caller and not &is_loaded($mod))
111 53 2 unless eval "require $mod"
117 22 50 if (defined &{$name;})
123 3 22 unless defined $func
129 0 23 if ($self->{'parallel'} != 1) { }
140 0 0 $self->{'parallel'} > 1 ? :
149 0 0 if (defined $err and @$err) { }
155 0 0 if (defined $warn and @$warn)
158 0 0 if (defined $info and @$info)
165 0 0 if $manager->start
174 0 0 if ($wantlist) { }
190 32 24 if (defined $err and @$err) { }
196 4 52 if (defined $warn and @$warn)
199 4 52 if (defined $info and @$info)
204 21 2 if ($wantlist) { }
219 84 130 if exists $check_opts->{$label}
226 25 210 if (defined $label and exists $check_opts->{$label} and exists $check_opts->{$label}{$opt}) { }
1 209 elsif (exists $check_opts->{$opt}) { }
249 0 28 if (ref $mess eq 'ARRAY') { }
258 0 28 if ($level eq 'info') { }
0 28 elsif ($level eq 'warn') { }
276 90 32 if not $label or $self->check_performed($check_opts, $label)
278 32 90 unless $do_check
285 44 46 unless defined $negate_fail
289 22 68 if (not $negate || $value) { }
6 118 elsif ($negate and $value) { }