Condition Coverage

blib/lib/Sport/Analytics/NHL/Report.pm
Criterion Covered Total %
condition 54 112 48.2


and 3 conditions

line !l l&&!r l&&r condition
232 25 2 1 $args->{'data'} and $args->{'file'}
279 5 0 15 -f $tree and (stat $tree)[9] > (stat $args->{'file'})[9] - 2
290 4 1 0 $args->{'type'} eq 'ES' and $args->{'data'} =~ /width\=100\%/i
5 0 0 $args->{'type'} eq 'ES' and $args->{'data'} =~ /width\=100\%/i and not $args->{'data'} =~ /width\=100\%\>/i
330 16 0 56 $content and not ref $content
331 56 0 0 $self->{'old'} and $r == 4
56 0 0 $self->{'old'} and $r == 4 and $content =~ /\,/
335 0 56 0 $content and $content =~ /\s*(attendance|attd)\s+(\d+\S+\d+)\s*$/i
340 56 0 0 $r == 11 and not $self->{'attendance'}
343 0 56 0 $content and $content =~ /^\s*(\d+\:\d+)\s+(\S\S)\s+(\S\S)\s+at\s+(.*)/
458 16 0 0 ref $name and $self->{'old'}
468 0 0 16 defined $score and $score =~ /^\d{1,2}\s*$/
469 0 0 16 defined $score and $score =~ /^\s*\d{1,2}\s*$/
527 24 0 0 $self->{'old'} and @{$self->{'head'};} == 2
538 8 0 0 $self->{'status'} =~ /end.*period (3|4)/i and $self->{'teams'}[0]{'score'} != $self->{'teams'}[1]{'score'}
543 0 0 8 $self->{'season'} != 2012 and $self->{'month'} > 3
0 8 0 $self->{'season'} != 2012 and $self->{'month'} > 3 and $self->{'month'} < 8
8 0 0 $self->{'season'} != 2012 and $self->{'month'} > 3 and $self->{'month'} < 8 and $self->{'season_id'} <= $Sport::Analytics::NHL::Report::LAST_PLAYOFF_GAME_INDEX
8 0 0 $self->{'season'} == 2012 and $self->{'start_ts'} >= $Sport::Analytics::NHL::Report::LATE_START_IN_2012
573 8 2 0 $date =~ /^\d/ && !$force_us
640 166 94 102156 $$tpointer and ref $$tpointer
676 2810 0 715 $event->{'team2'} and $event->{'team2'} ne 'OTH'

or 2 conditions

line l !l condition
251 29 1 shift() || {}
353 8 0 $self->{'status'} ||= 'Preview'
557 0 8 $self->{'periods'} ||= [{}, {}, {}]
560 8 0 $self->{'attendance'} ||= 0
569 2 8 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
228 3 25 2 $args->{'data'} or $args->{'file'}
237 7 19 1 $args->{'type'} || ($args->{'file'} ? $args->{'file'} =~ m[/([A-Z]{2}).[a-z]{4}$] ? $1 : '' : '')
315 0 0 6 $self->{'GS'} || $self->{'ES'} || $self->{'RO'} || $self->{'PL'}
357 0 0 8 $self->{'status'} eq 'End of Game' or $self->{'status'} eq 'End of Period 4'
0 0 8 $self->{'status'} eq 'End of Game' or $self->{'status'} eq 'End of Period 4' or $self->{'status'} eq 'Period 4 (0:00 Remaining)'
543 0 0 8 $self->{'season'} != 2012 and $self->{'month'} > 3 and $self->{'month'} < 8 and $self->{'season_id'} <= $Sport::Analytics::NHL::Report::LAST_PLAYOFF_GAME_INDEX or $self->{'season'} == 2012 and $self->{'start_ts'} >= $Sport::Analytics::NHL::Report::LATE_START_IN_2012
577 2 8 0 $self->{'season'} ||= $year
603 0 10 0 $self->{'tz'} ||= $start_tz
625 0 0 0 $self->{'ot'} || $self->{'so'}
635 174 0 0 shift() || $self->{'html'} || $self
665 196 0 0 $event->{'player1'} ||= $Sport::Analytics::NHL::Report::BENCH_PLAYER_ID
681 0 3525 0 $event->{'stage'} == $Sport::Analytics::NHL::Report::PLAYOFF || $event->{'stage'} == $Sport::Analytics::NHL::Report::REGULAR && $event->{'period'} < 5