Branch Coverage

blib/lib/Baseball/Sabermetrics/abstract.pm
Criterion Covered Total %
branch 9 26 34.6


line true false branch
40 0 34 unless my $type = ref $self
45 0 34 if ($name eq 'DESTROY') { }
24 10 elsif (exists $self->{$name}) { }
10 0 elsif (exists $formula{$name}) { }
63 1 9 unless (ref $formula{$name})
65 0 3 $1 ? :
69 0 1 unless $formula{$name} = eval "sub { $formula{$name} }"
85 0 0 if (grep /^all$/, @_)
89 0 0 if ($_ eq 'team') { }
94 0 0 if ($val =~ s/(\d+\.\d\d\d)(\d)\d*/$1/)
95 0 0 if $2 >= 5
112 0 0 unless exists $formula{$_[1]}
124 0 0 unless (ref $func)