Branch Coverage

blib/lib/Import/Base.pm
Criterion Covered Total %
branch 39 42 92.8


line true false branch
26 145 6 unless ($args->{'bundles_only'})
43 3 31 if $args[0] =~ /^-/
77 1 45 if $$args{-'exclude'} and ref $$args{-'exclude'} ne 'ARRAY'
79 2 43 if ($$args{-'exclude'})
82 1 1 ref $$args{-'exclude'}[0] eq 'ARRAY' ? :
97 15 130 if (ref $modules[0] eq 'CODE')
105 4 126 if (ref $thing eq 'HASH') { }
111 45 85 ref $modules[0] eq 'ARRAY' ? :
114 10 120 if ($module =~ /^
10 110 elsif ($module =~ /^>/) { }
116 0 10 if (defined $version) { }
125 0 10 if (defined $version) { }
142 15 138 if (ref $load eq 'CODE') { }
4 134 elsif (ref $load eq 'HASH') { }
153 136 2 ref $loads[0] eq 'ARRAY' ? :
155 2 136 if (exists $exclude->{$module})
156 1 1 if (defined $exclude->{$module}) { }
160 0 1 unless grep {$_ eq $import;} @{$$exclude{$module};}
170 34 103 if ($module =~ /^-/)
175 2 135 if ($module->isa('Import::Base'))
182 4 131 if (defined $version) { }