| line |
true |
false |
branch |
|
229
|
1 |
2 |
if (not $bs_player) { } |
|
|
1 |
1 |
elsif (not $bs_player->{'number'} or $bs_player->{'number'} != $player->{'number'}) { } |
|
238
|
0 |
2 |
if ($bs_player->{'broken'}) |
|
255
|
0 |
12 |
if ($player->{'name'} =~ /\.\s*(\S+.*)$/ and not $name =~ /^st\./i) |
|
264
|
258 |
1 |
unless $_->{'name'} =~ /^$fname.*$name$/i |
|
265
|
11 |
1 |
unless @found_players |
|
267
|
0 |
1 |
if @found_players > 1 |
|
269
|
0 |
1 |
if (@found_players > 1) |
|
272
|
0 |
0 |
$CURRENT eq 'GS' ? : |
|
274
|
1 |
0 |
if @found_players == 1 |
|
275
|
0 |
0 |
if (@found_players > 1) |
|
278
|
0 |
0 |
unless $_->{'number'} == $o_i |
|
280
|
0 |
0 |
if $found |
|
292
|
0 |
283 |
unless (ref $player) |
|
293
|
0 |
0 |
$player =~ /^\d/ ? : |
|
297
|
3 |
280 |
if ($player->{'_id'} and $player->{'_id'} =~ /^8\d{6}/) { } |
|
|
278 |
2 |
elsif ($player->{'number'}) { } |
|
299
|
3 |
0 |
if $player->{'_id'} and $player->{'_id'} =~ /^8\d{6}/ |
|
304
|
267 |
11 |
if $$PLAYER_RESOLVE_CACHE{$team->{'name'}}{$player->{'number'}} |
|
305
|
1 |
10 |
unless $bs_player or $player->{'name'} |
|
308
|
11 |
271 |
unless $bs_player |
|
309
|
271 |
0 |
if defined $bs_player->{'number'} and not $bs_player->{'broken'} |
|
320
|
0 |
28 |
if ($event->{'type'} eq 'PENL') { } |
|
|
28 |
0 |
elsif ($event->{'type'} eq 'STOP') { } |
|
326
|
0 |
0 |
if $event->{'length'} == $_->{'length'} || $event->{'length'} == 10 && $_->{'length'} == 2 and $event->{'penalty'} eq $_->{'penalty'} |
|
330
|
2 |
26 |
if ($event->{'stopreason'} =~ /$stopreason/i or $event->{'stopreason'} =~ /CHLG/i and $stopreason =~ /challenge/i) |
|
343
|
0 |
0 |
unless ($event->{'player1'} || 0) == ($_->{'player1'} || 0) |
|
354
|
1 |
954 |
if $event->{'special'} |
|
355
|
1 |
953 |
if not $event->{'player1'} and $type ne 'PL' |
|
362
|
9020 |
104711 |
if $_->{'t'} == $event->{'t'} and $_->{'period'} == $event->{'period'} and $_->{'type'} eq $event->{'type'} |
|
364
|
0 |
0 |
if (not @candidates and $event->{'type'} eq 'MISS' || $event->{'type'} eq 'SHOT' and $event->{'so'}) |
|
368
|
0 |
0 |
if $_->{'t'} == $event->{'t'} |
|
370
|
937 |
16 |
if @candidates == 1 |
|
371
|
2 |
14 |
unless @candidates |
|
373
|
1 |
13 |
if @candidates |
|
374
|
13 |
0 |
unless @candidates |
|
382
|
0 |
10 |
if $event->{'sources'}{'GS'} and $event->{'period'} == 5 and $event->{'stage'} == $Sport::Analytics::NHL::Merger::REGULAR |
|
385
|
0 |
18300 |
unless $on_ice =~ /^\d{1,2}$/ |
|
393
|
0 |
18300 |
unless (ref $new_on_ice) |
|
394
|
0 |
0 |
if ($CURRENT eq 'GS') |
|
411
|
0 |
288 |
if $player->{'error'} |
|
412
|
276 |
8 |
if ($player->{'timeOnIce'} || defined $player->{'start'} && $player->{'start'} != 2 and not $player->{'_id'} && $player->{'_id'} eq $Sport::Analytics::NHL::Merger::EMPTY_NET_ID) |
|
414
|
0 |
276 |
if (not $bs_player and $CURRENT eq 'GS') |
|
419
|
0 |
10 |
unless $bs_player or ($player->{'position'} eq 'G' and $player->{'start'} != 1 or not $player->{'timeOnIce'}) |
|
429
|
1325 |
265 |
if ($event->{'team1'}) |
|
430
|
0 |
1325 |
if ($event->{'team1'} eq 'OTH') |
|
432
|
0 |
0 |
$event->{'team2'} eq $report->{'teams'}[0]{'name'} ? : |
|
436
|
715 |
875 |
if ($event->{'team2'}) |
|
437
|
0 |
715 |
if ($event->{'team2'} eq 'OTH') |
|
439
|
0 |
0 |
$event->{'team1'} eq $report->{'teams'}[0]{'name'} ? : |
|
454
|
0 |
0 |
if $Sport::Analytics::NHL::Merger::REVERSE_NAME_TYPOS{$last_name} |
|
455
|
0 |
0 |
if ($description =~ /\b$last_name\b/i) |
|
469
|
5840 |
2110 |
if not $event->{$field} or $event->{$field} =~ /^8\d{6}/ |
|
470
|
715 |
1395 |
$field eq 'player2' ? : |
|
471
|
715 |
1395 |
$field eq 'player2' ? : |
|
472
|
0 |
2110 |
if ($event->{$field} and $event->{$field} =~ /\D/) { } |
|
474
|
0 |
0 |
if ($player) { } |
|
|
0 |
0 |
elsif (not $CURRENT eq 'GS' && $event->{'type'} eq 'GOAL') { } |
|
480
|
0 |
0 |
if ($event->{'player1'} and $event->{'servedby'} and $event->{'player1'} == $event->{'servedby'}) |
|
506
|
6 |
6 |
if ($rp->{'events'}) |
|
511
|
1270 |
4 |
if $event->{'on_ice'} |
|
527
|
135 |
1014 |
if $rp_event->{'stopreason'} |
|
534
|
10 |
0 |
if not $bs_event->{$_} or $bs_event->{$_} eq 'N/A' |
|
538
|
933 |
0 |
if not $bs_event->{'on_ice'} && $bs_event->{'on_ice'}[0] && @{$bs_event->{'on_ice'}[0];} |
|
542
|
0 |
0 |
if not $bs_event->{$_} =~ /\S/ or $bs_event->{$_} eq 'XX' |
|
548
|
204 |
945 |
if (defined $bs_event->{'position'}) |
|
550
|
0 |
10 |
if (not defined $bs_event->{$field} and defined $rp_event->{$field} and $rp_event->{$field} eq '' || $rp_event->{$field} eq 0) |
|
566
|
0 |
208 |
if $rp_player->{'error'} |
|
567
|
4 |
204 |
unless $rp_player->{'timeOnIce'} or defined $rp_player->{'start'} |
|
568
|
0 |
204 |
if $rp_player->{'_id'} and $rp_player->{'_id'} == $Sport::Analytics::NHL::Merger::EMPTY_NET_ID |
|
572
|
204 |
0 |
if $rp_player->{'number'} |
|
584
|
0 |
14 |
unless ($bs_team->{'name'} eq $rp_team->{'name'}) |
|
601
|
0 |
0 |
if ($event->{'assist1'}) |
|
630
|
12 |
0 |
unless $boxscore->{'no_events'} or $type eq 'PL' and $event->{'season'} < 2010 and $event->{'type'} ne 'PENL' and $event->{'type'} ne 'GOAL' or ref $Sport::Analytics::NHL::Merger::FORCED_PUSH{$type}{$game_id} and $Sport::Analytics::NHL::Merger::FORCED_PUSH{$type}{$game_id}{$event->{'id'}} or $event->{'type'} eq 'PENL' and $event->{'length'} == 0 or $event->{'type'} eq 'PEND' or $event->{'type'} eq 'GEND' or $event->{'type'} eq 'STOP' and $event->{'description'} =~ /CHL/i |
|
641
|
0 |
0 |
if $event->{'type'} eq 'MISS' |
|
653
|
10 |
0 |
if $type eq 'GS' and $boxscore->{'sources'}{'PL'} and $boxscore->{'season'} >= 2007 |
|
655
|
12 |
936 |
if (not ref $e) { } |
|
|
0 |
1872 |
elsif ($type eq 'GS' and $rp_event->{'type'} eq 'MISS') { } |
|
656
|
0 |
12 |
if (&expected_miss($type, $rp_event, $boxscore)) |
|
664
|
0 |
0 |
unless (ref $e) |
|
669
|
0 |
948 |
unless defined $e |
|
670
|
12 |
936 |
if $e == -1 |
|
699
|
4 |
0 |
@{$boxscore->{'events'};} ? : |