Branch Coverage

blib/lib/Baseball/Sabermetrics/abstract.pm
Criterion Covered Total %
branch 22 38 57.8


line true false branch
44 0 177 unless my $type = ref $self
50 0 177 if ($name eq 'DESTROY') { }
71 106 elsif (exists $$self{$name}) { }
76 30 elsif (exists $$self{$cachename}) { }
30 0 elsif (exists $formula{$name}) { }
71 1 29 unless (ref $formula{$name})
74 0 3 if ($q) { }
0 3 elsif ($n =~ /^\d+$/) { }
0 3 elsif ($n =~ /^\d/) { }
85 0 3 $d ? :
91 0 1 unless $formula{$name} = eval "sub { $formula{$name} }"
95 0 30 if $@
109 0 5 if (grep /^all$/, @_)
113 0 25 if ($_ eq 'team') { }
118 13 12 if ($val =~ s/(\d+\.\d\d\d)(\d)\d*/$1/)
119 8 5 if $2 >= 5
136 0 0 unless exists $formula{$_[1]}
148 4 0 unless (ref $func)
157 0 0 unless (ref $func)