Branch Coverage

blib/lib/Module/Loadable.pm
Criterion Covered Total %
branch 18 46 39.1


line true false branch
16 0 2 if ($^O =~ /^(dos|os2)/i) { }
0 2 elsif ($^O =~ /^MacOS/i) { }
29 0 32 unless defined $entry
32 0 32 if ($ref eq 'ARRAY') { }
0 32 elsif (&blessed($entry)) { }
1 31 elsif ($ref eq 'CODE') { }
43 2 29 if (-f $path)
44 0 2 unless open my $fh, '<', $path
51 0 29 if ($is_hook)
52 0 0 unless @hook_res
53 0 0 if ref $hook_res[0] eq 'SCALAR'
54 0 0 if ref $hook_res[0] eq 'GLOB'
55 0 0 if ref $hook_res[0] eq 'CODE'
56 0 0 if @hook_res
57 0 0 if ($fh) { }
0 0 elsif ($code) { }
62 0 0 if ($code)
67 0 0 if $prepend_ref
75 0 0 if $prepend_ref
89 1 0 if ($name =~ /\A\w+(?:::\w+)*\z/) { }
103 4 1 if ($name =~ /\A\w+(?:::\w+)*\z/) { }
109 2 3 if exists $INC{$name_pm}
111 1 2 if (eval { do { _module_source($name_pm); 1 } }) { }