Condition Coverage

blib/lib/Sport/Analytics/NHL/Report/BS.pm
Criterion Covered Total %
condition 45 92 48.9


and 3 conditions

line !l l&&!r l&&r condition
224 0 0 18 $self->{'json'}{'gameData'}{'status'}{'abstractGameState'} and $self->{'json'}{'gameData'}{'status'}{'abstractGameState'} eq 'Final'
298 361 0 0 $Sport::Analytics::NHL::Report::BS::BROKEN_PLAYERS{'BS'}{$self->{'_id'}} and $Sport::Analytics::NHL::Report::BS::BROKEN_PLAYERS{'BS'}{$self->{'_id'}}{$player}
0 0 0 $Sport::Analytics::NHL::Report::BS::BROKEN_PLAYERS{'BS'}{$self->{'_id'}} and $Sport::Analytics::NHL::Report::BS::BROKEN_PLAYERS{'BS'}{$self->{'_id'}}{$player} and $Sport::Analytics::NHL::Report::BS::BROKEN_PLAYERS{'BS'}{$self->{'_id'}}{$player} == -1
330 361 0 0 $Sport::Analytics::NHL::Report::BS::BROKEN_PLAYERS{'BS'}{$self->{'_id'}} and $Sport::Analytics::NHL::Report::BS::BROKEN_PLAYERS{'BS'}{$self->{'_id'}}{$ld_player->{'person'}{'id'}}
361 0 0 $Sport::Analytics::NHL::Report::BS::BROKEN_PLAYERS{'BS'}{$self->{'_id'}} and $Sport::Analytics::NHL::Report::BS::BROKEN_PLAYERS{'BS'}{$self->{'_id'}}{$ld_player->{'person'}{'id'}} and ref $Sport::Analytics::NHL::Report::BS::BROKEN_PLAYERS{'BS'}{$self->{'_id'}}{$ld_player->{'person'}{'id'}}
383 18 0 0 $Sport::Analytics::NHL::Report::BS::MISSING_PLAYERS{$self->{'_id'}} and @{$Sport::Analytics::NHL::Report::BS::MISSING_PLAYERS{$self->{'_id'}}[$t];}
450 152 0 0 $event->{'penalty'} =~ /bench/i and not $event->{'penalty'} =~ /leaving/i
523 0 2275 0 $Sport::Analytics::NHL::Report::BS::BROKEN_EVENTS{'BS'}{$event->{'game_id'}} and my $evx = $Sport::Analytics::NHL::Report::BS::BROKEN_EVENTS{'BS'}{$event->{'game_id'}}{$ld_event->{'about'}{'eventIdx'}}
537 2123 145 7 $event->{'type'} eq 'PENL' and $event->{'description'} =~ /served by/i
2268 7 0 $event->{'type'} eq 'PENL' and $event->{'description'} =~ /served by/i and not $event->{'servedby'}
568 2238 0 37 $event->{'type'} eq 'GOAL' and not $event->{'en'}
2238 37 0 $event->{'type'} eq 'GOAL' and not $event->{'en'} and not $event->{'player2'}
595 2324 0 0 $Sport::Analytics::NHL::Report::BS::BROKEN_EVENTS{'BS'}{$self->{'_id'}}{$ld_event->{'about'}{'eventIdx'}} and $Sport::Analytics::NHL::Report::BS::BROKEN_EVENTS{'BS'}{$self->{'_id'}}{$ld_event->{'about'}{'eventIdx'}} eq '-1'
620 2275 0 0 $Sport::Analytics::NHL::Report::BS::SPECIAL_EVENTS{$self->{'_id'}} and $Sport::Analytics::NHL::Report::BS::SPECIAL_EVENTS{$self->{'_id'}}{$ld_event->{'about'}{'eventIdx'}}

or 2 conditions

line l !l condition
283 28 4 $official->{'official'}{'id'} || 0
328 18 0 $ld_player->{'stats'}{'goalieStats'} || {}
337 0 18 $player->{'penaltyMinutes'} || 0
448 112 40 $ld_event->{'result'}{'penaltySeverity'} || ''
476 35 2 $ld_event->{'result'}{'secondaryType'} || ''
498 224 0 $1 || ''
510 441 0 $ld_event->{'result'}{'secondaryType'} || ''
616 37 2238 $ld_event->{'result'}{'strength'}{'code'} || ''
0 2275 $ld_event->{'about'}{'eventCode'} || ''
648 24 16 $self->{'resolve_cache'}{$self->{'teams'}[$t]{'name'}}{'names'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
316 308 18 35 $ld_player->{'stats'}{'skaterStats'} or $ld_player->{'stats'}{'goalieStats'}
337 0 0 18 $player->{'pim'} ||= $player->{'penaltyMinutes'} || 0
368 18 0 0 $ldb_team->{'team'}{'triCode'} || $json->{'gameData'}{'teams'}{$team_key}{'abbreviation'}
374 0 361 0 $self->set_broken_player($ld_player->{'person'}{'id'}) || $self->set_player($ld_player)
426 0 0 27 $self->{'ot'} ||= $ld_period->{'periodType'} eq 'OVERTIME' ? 1 : 0
454 7 0 145 $event->{'penalty'} =~ /too many/i or $event->{'description'} =~ /^\s+against/i
455 0 7 0 $event->{'servedby'} ||= $event->{'player1'}
545 0 0 0 $event->{'description'} =~ /\b(illegal|official|proceed|dress|refusal|objects|misconduct|ineligible|conduct|bench|coach|delay|abus|leaving)/i && !($event->{'description'} =~ /leaves.*bench/i) || $event->{'severity'} =~ /BENCH/ || $event->{'description'} =~ /minor served by/i
616 1883 0 0 $ld_event->{'team'}{'triCode'} || $ld_event->{'team'}{'name'}
640 364 0 0 $player->{'number'} ||= $unknown_number++