blib/lib/Sport/Analytics/NHL/Report/GS.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 50 | 162 | 30.8 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
182 | 0 | 10 | 0 | $event->{'assist1'} and $event->{'assist1'} =~ /unsuccessful/i |
249 | 0 | 0 | 0 | $key =~ /^assist/ and not $event->{$key} |
267 | 0 | 2 | 10 | $row and ref $row |
295 | 0 | 30 | 2 | $event->{'name'} and $event->{'name'} =~ /\bteam\b/i |
347 | 0 | 4 | 32 | $row and ref $row |
352 | 0 | 0 | 32 | $event and $event->{'type'} |
402 | 0 | 0 | 0 | $period =~ /(\d+)/ and $period > 0 |
449 | 0 | 2 | 0 | $star1 && $star1 eq 'Team' |
453 | 0 | 0 | 6 | $team and $team =~ /[A-Z]\s*$/ |
486 | 0 | 0 | 0 | $goalie->{'name'} and $goalie->{'name'} =~ /[a-z]/i |
502 | 0 | 0 | 0 | $name and $name =~ /[A-Z]\s*$/i |
532 | 0 | 2 | 22 | $goalies_row and ref $goalies_row |
681 | 0 | 0 | 6 | defined $star and ref $star |
0 | 0 | 6 | defined $star and ref $star and defined $star->{'name'} | |
689 | 68 | 424 | 30 | $event->{$field} and $event->{$field} =~ /^(\d+)\s+\D/ |
697 | 0 | 10 | 32 | defined $event->{'team1'} and $event->{'team1'} =~ /^\d+$/ |
700 | 32 | 10 | 0 | $event->{'assist1'} and lc $event->{'assist1'} eq 'unassisted' || $event->{'assist1'} =~ /unsuccessful/i || $event->{'assist1'} =~ /penalty shot/i |
701 | 32 | 0 | 10 | defined $event->{'assist2'} and $event->{'assist2'} =~ /\w/ |
706 | 32 | 10 | 0 | $event->{'assist1'} and $Sport::Analytics::NHL::Report::GS::NAME_TYPOS{$event->{'assist1'}} |
707 | 32 | 10 | 0 | $event->{'assist2'} and $Sport::Analytics::NHL::Report::GS::NAME_TYPOS{$event->{'assist2'}} |
742 | 0 | 0 | 0 | $event->{'assist1'} and $event->{'assist1'} =~ /\w/ |
744 | 0 | 0 | 0 | $event->{'assist2'} and $event->{'assist2'} =~ /\w/ |
754 | 0 | 0 | 0 | $Sport::Analytics::NHL::Report::GS::SPECIAL_EVENTS{$self->{'_id'}} and not $event->{'on_ice'}[0][0] |
773 | 0 | 0 | 0 | $event->{'player1'} and $event->{'player1'} =~ /\D/ |
778 | 0 | 0 | 0 | defined $event->{'team1'} and $event->{'team1'} =~ /^\d+$/ |
784 | 0 | 0 | 0 | $event->{'assist1'} and $Sport::Analytics::NHL::Report::GS::NAME_TYPOS{$event->{'assist1'}} |
785 | 0 | 0 | 0 | $event->{'assist2'} and $Sport::Analytics::NHL::Report::GS::NAME_TYPOS{$event->{'assist2'}} |
786 | 0 | 0 | 0 | $event->{'assist1'} and $event->{'assist1'} =~ /unassisted/i || !($event->{'assist1'} =~ /[a-z]/i) |
787 | 0 | 0 | 0 | $event->{'assist2'} and $event->{'assist2'} =~ /unassisted/i || !($event->{'assist2'} =~ /[a-z]/i) |
line | l | !l | condition |
---|---|---|---|
209 | 0 | 10 | $event->{'en'} ||= 0 |
215 | 100 | 20 | $event->{'on_ice'}[$i - 8] ||= [] |
262 | 2 | 0 | shift() || 0 |
329 | 2 | 0 | shift() || 0 |
517 | 0 | 0 | $self->{'officials'}{$type} ||= [] |
693 | 10 | 32 | $event->{'strength'} ||= 'XX' |
694 | 10 | 32 | $event->{'location'} ||= 'Unk' |
702 | 42 | 0 | $event->{'player1'} ||= 0 |
791 | 0 | 0 | $self->{'events'}[$e - 1]{'location'} ||= 'Unk' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
158 | 0 | 10 | 0 | $is_special or $event->{'period'} =~ /\w/ |
172 | 0 | 0 | 10 | $event->{'period'} eq 'SO' or $event->{'period'} eq 'F' |
195 | 0 | 0 | 10 | $event->{'strength'} =~ /(.*)-\s*PS/ or $event->{'type'} eq 'MISS' |
222 | 0 | 0 | 0 | $self->get_sub_tree(0, [7, 0, 0], $row) || $self->get_sub_tree(0, [8, 0], $row) |
223 | 0 | 0 | 0 | $self->get_sub_tree(0, [8, 0, 0], $row) || $self->get_sub_tree(0, [9, 0], $row) |
376 | 12 | 0 | 0 | $self->get_sub_tree(0, [0, 1, $pp, 0], $pp_team_summary) || $self->get_sub_tree(0, [0, 0, 0, 0, 0, 0, 0, 1, $pp, 0], $pp_team_summary) |
425 | 2 | 0 | 0 | $self->get_sub_tree(0, [1, 0, 0, 1, 0, 0], $officials_table) || () |
2 | 0 | 0 | $self->get_sub_tree(0, [1, 1, 0, 1, 0, 0], $officials_table) || () | |
436 | 0 | 0 | 0 | $self->get_sub_tree(0, [0, 1, 0, 1, 0, 0], $officials_table) || () |
0 | 0 | 0 | $self->get_sub_tree(0, [0, 3, 0, 1, 0, 0], $officials_table) || () | |
469 | 0 | 0 | 0 | $goalies_header->attr('colspan') || $goalies_header->attr('colSpan') |
638 | 0 | 32 | 64 | $goalie->{$field} eq ' ' or ord $goalie->{$field} == 160 |
649 | 2 | 2 | 0 | $team->{'strength'}{'ev'}{'time'} ||= $last_time |
650 | 2 | 2 | 0 | $self->{'teams'}[$t - 1]{'strength'}{'ev'}{'time'} ||= $last_time |
700 | 0 | 0 | 10 | lc $event->{'assist1'} eq 'unassisted' || $event->{'assist1'} =~ /unsuccessful/i || $event->{'assist1'} =~ /penalty shot/i |
740 | 0 | 0 | 0 | $event->{'type'} eq 'GOAL' or $event->{'type'} eq 'MISS' |
754 | 0 | 0 | 0 | $Sport::Analytics::NHL::Report::GS::SPECIAL_EVENTS{$self->{'_id'}} and not $event->{'on_ice'}[0][0] or $event->{'on_ice'}[0][0] =~ /Data/ |
786 | 0 | 0 | 0 | $event->{'assist1'} =~ /unassisted/i || !($event->{'assist1'} =~ /[a-z]/i) |
787 | 0 | 0 | 0 | $event->{'assist2'} =~ /unassisted/i || !($event->{'assist2'} =~ /[a-z]/i) |