Condition Coverage

blib/lib/Sport/Analytics/NHL/Report/Player.pm
Criterion Covered Total %
condition 35 76 46.0


and 3 conditions

line !l l&&!r l&&r condition
250 0 0 3 defined $1 and defined $2
266 0 15 25 defined $self->{$field} and $self->{$field} =~ /^\-?\d*\.?\d+$/
295 160 0 0 $season->{'ga'} and $season->{'ga'} == 871
296 160 0 0 $season->{'ga'} and $season->{'ga'} == 1465
297 160 0 0 $season->{'ga'} and $season->{'ga'} == 1380
298 1 159 0 $season->{'gp'} and $season->{'gp'} == 119
299 1 159 0 $season->{'gp'} and $season->{'gp'} == 487
300 160 0 0 $season->{'so'} and $season->{'so'} == 149
306 59 0 101 $season->{'league'} eq 'National Hockey League' and $season->{'start'} >= 1942
327 0 0 0 $season->{'team'} =~ /total/i and $season->{'gp'}

or 2 conditions

line l !l condition
134 3 0 $bio->{'shootsCatches'} || 'R'
2 1 $bio->{'birthStateProvince'} || 'NA'
199 0 0 $season->{'stat'}{'savePercentage'} || 0
201 0 0 $season->{'stat'}{'timeOnIce'} || '0:00'
304 160 0 $season->{'team'} ||= 'Unknown-UNKHL'
305 160 0 $season->{'league'} ||= 'UNKHL'
318 159 0 $season->{'league'} ||= 'NHL'
323 4 97 $season->{'career_end'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
139 28 17 12 $player->{$key} || $bio->{$key}
143 0 0 0 $self->{$k} ||= $Sport::Analytics::NHL::Report::Player::MISSING_PLAYER_INFO{$bio->{'id'}}{$k}
186 59 0 0 $season->{'team'}{'abbreviation'} || $season->{'team'}{'name'} || $season->{'team'}{'id'}
307 1 0 159 $season->{'team'} =~ /(.*?)\-(\S+)\s*$/ or $season->{'team'} =~ /(.*?)\-(\S+\s*Ten)$/
1 0 159 $season->{'team'} =~ /(.*?)\-(\S+)\s*$/ or $season->{'team'} =~ /(.*?)\-(\S+\s*Ten)$/ or $season->{'team'} =~ /(.*?)\-(\S+\s*Midget)$/
0 0 159 $season->{'team'} =~ /(.*?)\-(\S+)\s*$/ or $season->{'team'} =~ /(.*?)\-(\S+\s*Ten)$/ or $season->{'team'} =~ /(.*?)\-(\S+\s*Midget)$/ or $season->{'team'} =~ /(.*?)\-(\S+)\s*Italy\s*$/
0 0 159 $season->{'team'} =~ /(.*?)\-(\S+)\s*$/ or $season->{'team'} =~ /(.*?)\-(\S+\s*Ten)$/ or $season->{'team'} =~ /(.*?)\-(\S+\s*Midget)$/ or $season->{'team'} =~ /(.*?)\-(\S+)\s*Italy\s*$/ or $season->{'team'} =~ /(.*?)\s+(U18-20 Elit)/
0 0 159 $season->{'team'} =~ /(.*?)\-(\S+)\s*$/ or $season->{'team'} =~ /(.*?)\-(\S+\s*Ten)$/ or $season->{'team'} =~ /(.*?)\-(\S+\s*Midget)$/ or $season->{'team'} =~ /(.*?)\-(\S+)\s*Italy\s*$/ or $season->{'team'} =~ /(.*?)\s+(U18-20 Elit)/ or $season->{'team'} =~ /(.*?)\-(\S+\s*Jr.)/
0 0 159 $season->{'team'} =~ /(.*?)\-(\S+)\s*$/ or $season->{'team'} =~ /(.*?)\-(\S+\s*Ten)$/ or $season->{'team'} =~ /(.*?)\-(\S+\s*Midget)$/ or $season->{'team'} =~ /(.*?)\-(\S+)\s*Italy\s*$/ or $season->{'team'} =~ /(.*?)\s+(U18-20 Elit)/ or $season->{'team'} =~ /(.*?)\-(\S+\s*Jr.)/ or $season->{'team'} =~ /(.*?)\-(\S+\s*Sr.)$/
321 95 6 0 $stage->[-1]{'career_start'} ||= $season->{'start'}