Branch Coverage

blib/lib/Mojo/Base/Lib.pm
Criterion Covered Total %
branch 22 26 84.6


line true false branch
28 0 12 if ref $it eq 'ARRAY'
33 0 12 unless defined $it and $it =~ m[/|\w]
36 7 5 if ($it =~ s/^(-\w+)//) { }
39 4 3 unless $flag eq '-lib'
43 0 3 if $it
50 1 4 unless $flag and $flag eq '-lib'
57 1 3 if $it =~ m[^/]
69 3 4 if (@libs and my(@ok_libs) = grep({my $lib = $_; not scalar grep(($lib eq $_), @INC);} @libs))
75 2 5 unless $flag = shift @flags
78 1 4 if ($flag eq '-base') { }
3 1 elsif ($flag eq '-strict') { }
1 0 elsif (my $file = $flag and not $flag->can('new')) { }
90 2 3 if ($flag)