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 24 4 if $subcol
200 0 100 if $FRENCH{$header}
201 0 100 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 160 28 if $player->{'No.'} and $player->{'No.'} =~ /\S/ and not $player->{'No.'} =~ /\D/
244 8 184 if ($player->{'No.'} and $player->{'No.'} =~ /TOTALS/)
258 0 4 if ($self->{'old'}) { }
279 16 144 if ($player->{'POS'} eq 'G')
283 0 44 $field eq 'TOIAVG' ? :
287 720 3184 if ($player->{$field} =~ /:/) { }
2864 480 elsif ($field ne 'name' and $field ne 'POS') { }
291 1572 1292 unless $player->{$field} =~ /\d/
294 3584 320 if $player->{$field} =~ /^\-?\d+$/
296 160 0 if $player->{'name'} =~ /^(\S.*\S)\,\s+(\S.*)$/
304 3744 1216 if exists $player->{$field}
306 16 144 $player->{'position'} eq 'G' ? :
310 144 16 if ($player->{'position'} ne 'G')
312 144 0 if defined $player->{'evenTimeOnIce'}