Branch Coverage

blib/lib/Data/Lazy.pm
Criterion Covered Total %
branch 42 56 75.0


line true false branch
24 5 3 if $_[0]
33 0 3 if $_[0]
48 0 1 if $_[0]
57 11 38 if ($$self{'type'} == 0) { }
34 4 elsif ($$self{'type'} == 1) { }
59 3 8 if exists $$self{'value'}
60 7 1 if (ref $$self{'code'} eq 'CODE') { }
65 1 7 if (ref $$self{'store'})
71 0 34 if ($_[0] < 0) { }
5 29 elsif ($_[0] - $$self{'size'} >= 0) { }
76 14 20 if defined ${$$self{'value'};}[$_[0]]
77 20 0 if (ref $$self{'code'} eq 'CODE') { }
85 3 1 unless (exists ${$$self{'value'};}{$_[0]})
86 3 0 if (ref $$self{'code'} eq 'CODE') { }
99 5 2 if ($$self{'type'} == 0) { }
1 1 elsif ($$self{'type'} == 1) { }
100 5 0 if ($$self{'store'}) { }
103 3 2 if (defined $_[0])
104 1 2 if ($$self{'store'} == 2) { }
1 1 elsif (ref $$self{'store'}) { }
119 1 0 if ($_[0] - $$self{'size'} >= 0)
124 0 1 if ($_[0] eq $;) { }
142 0 0 if $key eq $;
147 0 0 if $key eq $;
162 3 1 $function ? :
0 4 $_[0] && $_[0] =~ /^[012]$/ ? :
168 0 4 if ($varname =~ /^\%(.*)$/) { }
1 3 elsif ($varname =~ /^\@(.*)$/) { }