Branch Coverage

blib/lib/Module/Installed/Tiny.pm
Criterion Covered Total %
branch 46 100 46.0


line true false branch
17 0 2 if ($^O =~ /^(dos|os2)/i) { }
0 2 elsif ($^O =~ /^MacOS/i) { }
34 1 16 if ($name =~ m[/|\.pm\z]) { }
0 16 elsif ($SEPARATOR ne '/' and $name =~ /\Q$SEPARATOR\E/) { }
38 0 1 if $SEPARATOR ne "/"
48 0 16 if $SEPARATOR ne "/"
58 5 7 unless defined $opts->{'die'}
67 0 133 unless defined $entry
70 0 133 if ($ref eq 'ARRAY') { }
1 132 elsif (UNIVERSAL::can($entry, 'INC')) { }
0 132 elsif ($ref eq 'CODE') { }
73 0 0 if ($opts->{'die'}) { }
0 0 if ($@)
77 0 1 if ($opts->{'die'}) { }
1 0 if ($@)
81 0 0 if ($opts->{'die'}) { }
0 0 if ($@)
84 7 125 if (-f $path) { }
24 101 elsif ($opts->{'find_prefix'}) { }
86 0 7 unless (open $fh, "<", $path)
87 0 0 if ($opts->{'die'}) { }
90 3 4 wantarray ? :
91 1 2 wantarray ? :
4 3 if ($opts->{'all'}) { }
94 2 22 if (-d $path)
95 1 1 wantarray ? :
96 1 1 wantarray ? :
0 2 if ($opts->{'all'}) { }
101 0 127 if ($is_hook)
102 0 0 unless @hook_res
105 0 0 if ref $hook_res[0] eq "SCALAR"
106 0 0 if ref $hook_res[0] eq "GLOB"
107 0 0 if ref $hook_res[0] eq "CODE"
108 0 0 if @hook_res
109 0 0 if ($fh) { }
0 0 elsif ($code) { }
114 0 0 if ($code)
119 0 0 if $prepend_ref
126 0 0 if $prepend_ref
129 0 0 if ($opts->{'die'}) { }
0 0 if ($@)
130 0 0 wantarray ? :
131 0 0 wantarray ? :
0 0 if ($opts->{'all'}) { }
135 2 4 if (@res) { }
136 1 1 wantarray ? :
138 1 3 if ($opts->{'die'}) { }
152 2 3 if exists $INC{$name_pm}
154 3 0 unless $opts
155 1 2 defined $res ? :