Branch Coverage

blib/lib/Sport/Analytics/NHL/Report/ES.pm
Criterion Covered Total %
branch 28 44 63.6


line true false branch
141 0 0 if (ref $headers[$h])
153 0 0 unless ($header)
161 0 0 unless $subshot
195 12 2 if $subcol
200 0 50 if $FRENCH{$header}
201 0 50 if $header =~ /TOIF.*EV/
202 0 0 if $header =~ /^M./ and $header ne 'MS' and $header ne 'M%' and $header ne 'MO' and $header ne 'MG'
222 0 0 if $player->{'name'} and not $player->{'name'} =~ /TOTALS/ and not $player->{'name'} =~ /team penalty/i
243 80 14 if $player->{'No.'} and $player->{'No.'} =~ /\S/ and not $player->{'No.'} =~ /\D/
244 4 92 if ($player->{'No.'} and $player->{'No.'} =~ /TOTALS/)
258 0 2 if ($self->{'old'}) { }
279 8 72 if ($player->{'POS'} eq 'G')
283 0 22 $field eq 'TOIAVG' ? :
287 360 1592 if ($player->{$field} =~ /:/) { }
1432 240 elsif ($field ne 'name' and $field ne 'POS') { }
291 786 646 unless $player->{$field} =~ /\d/
294 1792 160 if $player->{$field} =~ /^\-?\d+$/
296 80 0 if $player->{'name'} =~ /^(\S.*\S)\,\s+(\S.*)$/
304 1872 608 if exists $player->{$field}
306 8 72 $player->{'position'} eq 'G' ? :
310 72 8 if ($player->{'position'} ne 'G')
312 72 0 if defined $player->{'evenTimeOnIce'}