| blib/lib/Sport/Analytics/NHL/Report/BH.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 34 | 80 | 42.5 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 165 | 4 | 2 | 0 | not ref $score and $score =~ /\bEN\b/ |
| 258 | 24 | 0 | 0 | $event->{'penalty'} =~ /abuse.*official/i and $self->{'season'} > 1997 |
| 260 | 22 | 0 | 0 | $event->{'penalty'} =~ /\bbench\b/i and $event->{'length'} != 10 |
| 264 | 0 | 0 | 2 | $event->{'player1'} and $event->{'player1'} =~ /^8\d{6}/ |
| 270 | 22 | 0 | 2 | $event->{'penalty'} =~ /\bbench\b/i and not $event->{'penalty'} =~ /leaving/i |
| 271 | 2 | 0 | 0 | not $event->{'servedby'} and $event->{'player1'} |
| 0 | 0 | 0 | not $event->{'servedby'} and $event->{'player1'} and $event->{'player1'} != $Sport::Analytics::NHL::Report::BH::BENCH_PLAYER_ID | |
| 345 | 0 | 12 | 0 | $cell->{'_content'}[2] and $cell->{'_content'}[2] =~ /OT period/i |
| 495 | 0 | 2 | 0 | $e == 2 and $x->tag eq 'tbody' |
| 520 | 0 | 2 | 2 | $referees and not ref $referees |
| 645 | 38 | 0 | 4 | $main_div->attr('class') and $main_div->attr('class') eq 'chrome' |
| 679 | 6 | 0 | 24 | not $event->{'strength'} and $event->{'str'} |
| 680 | 30 | 0 | 0 | $event->{'strength'} eq 'PS' and $event->{'time'} eq '0:00' |
| 687 | 30 | 0 | 0 | $Sport::Analytics::NHL::Report::BH::BROKEN_EVENTS{'BH'}{$self->{'_id'}} and my $evx = $Sport::Analytics::NHL::Report::BH::BROKEN_EVENTS{'BH'}{$self->{'_id'}}{$event->{'id'}} |
| line | l | !l | condition |
|---|---|---|---|
| 425 | 72 | 4 | $player->{'Pos'} || 'G' |
| 453 | 0 | 588 | $player->{$field} ||= -1 |
| 456 | 0 | 76 | $player->{'evenTimeOnIce'} ||= '00:00' |
| 457 | 0 | 76 | $player->{'status'} ||= 'X' |
| 479 | 0 | 0 | $self->{'periods'}[4] ||= {} |
| 503 | 4 | 4 | $self->{'teams'}[1 - $t]{'roster'} ||= [] |
| 572 | 8 | 2 | $ei_box->attr('id') || '' |
| 708 | 0 | 2 | $self->{'location'} ||= 'Unknown Location' |
| 709 | 0 | 2 | $self->{'attendance'} ||= 0 |
| 711 | 0 | 0 | $self->{'periods'}[$p] ||= {} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 258 | 0 | 0 | 24 | $event->{'penalty'} =~ /misconduct/i or $event->{'penalty'} =~ /Match/ |
| 0 | 0 | 24 | $event->{'penalty'} =~ /misconduct/i or $event->{'penalty'} =~ /Match/ or $event->{'penalty'} =~ /abuse.*official/i and $self->{'season'} > 1997 | |
| 0 | 0 | 24 | $event->{'penalty'} =~ /misconduct/i or $event->{'penalty'} =~ /Match/ or $event->{'penalty'} =~ /abuse.*official/i and $self->{'season'} > 1997 or $event->{'penalty'} =~ /leaving .* bench/i | |
| 260 | 2 | 0 | 22 | $event->{'penalty'} =~ /too many/i or $event->{'penalty'} =~ /\bbench\b/i and $event->{'length'} != 10 |
| 601 | 0 | 0 | 0 | $field eq 'number' or $field eq 'error' |
| 624 | 0 | 0 | 0 | $event->{'type'} eq 'PEND' or $event->{'type'} eq 'GEND' |