Branch Coverage

blib/lib/Class/LazyLoad.pm
Criterion Covered Total %
branch 34 34 100.0


line true false branch
17 6 10 if (caller)[0] eq 'Class::LazyLoad::Functions'
19 6 4 unless (@_)
25 2 4 if (ref $_ eq 'ARRAY') { }
43 103 2 if (caller)[0] eq 'Class::LazyLoad'
48 8 3 if ($_[3] eq '""')
49 1 7 if (my $func = overload::Method($realclass, $_[3])) { }
57 1 2 unless overload::Overloaded($realclass)
60 1 1 unless defined $func
82 1 10 unless ref $func eq 'CODE'
93 13 8 if exists $INC{"$filename.pm"}
96 1 7 if $@
109 4 13 unless @functions
116 1 16 if defined &{$subname;}
154 1 30 unless defined $_[0]
158 1 29 if ref $_[0] eq 'Class::LazyLoad'
168 1 3 unless defined $pkg
171 2 1 unless defined $name and length $name