Branch Coverage

blib/lib/Class/Load.pm
Criterion Covered Total %
branch 32 34 94.1


line true false branch
36 7 8 if $res
42 0 14 unless my $classes = Data::OptList::mkopt(\@_)
54 11 14 $options ? :
3 22 if is_class_loaded($name, $options ? $options : ())
58 1 21 if $res
62 10 11 if $e =~ /^Can't locate \Q$file\E in \@INC/
64 9 1 if $options and defined $$options{-'version'} and $e =~ _version_fail_re($name, $$options{-'version'})
71 5 8 $$_[1] && defined $$_[1]{-'version'} ? :
100 3 4 if @_ == 1
102 2 2 if @_ == 2
119 6 9 if $res
121 1 0 if $options and defined $$options{-'version'} and $e =~ _version_fail_re($class, $$options{-'version'})
126 2 6 if $e =~ _nonexistent_fail_re($class)
141 24 48 if (is_class_loaded($class))
145 11 13 unless $options and defined $$options{-'version'}
170 7 41 if ($options and defined $$options{-'version'}) { }
190 7 41 unless wantarray