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
233 36 2 1 $args->{'data'} and $args->{'file'}
280 5 0 23 -f $tree and (stat $tree)[9] > (stat $args->{'file'})[9] - 2
291 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
331 32 0 112 $content and not ref $content
332 112 0 0 $self->{'old'} and $r == 4
112 0 0 $self->{'old'} and $r == 4 and $content =~ /\,/
336 0 112 0 $content and $content =~ /\s*(attendance|attd)\s+(\d+\S+\d+)\s*$/i
341 112 0 0 $r == 11 and not $self->{'attendance'}
344 0 112 0 $content and $content =~ /^\s*(\d+\:\d+)\s+(\S\S)\s+(\S\S)\s+at\s+(.*)/
459 32 0 0 ref $name and $self->{'old'}
469 0 0 32 defined $score and $score =~ /^\d{1,2}\s*$/
470 0 0 32 defined $score and $score =~ /^\s*\d{1,2}\s*$/
528 48 0 0 $self->{'old'} and @{$self->{'head'};} == 2
539 16 0 0 $self->{'status'} =~ /end.*period (3|4)/i and $self->{'teams'}[0]{'score'} != $self->{'teams'}[1]{'score'}
544 0 0 16 $self->{'season'} != 2012 and $self->{'month'} > 3
0 16 0 $self->{'season'} != 2012 and $self->{'month'} > 3 and $self->{'month'} < 8
16 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
16 0 0 $self->{'season'} == 2012 and $self->{'start_ts'} >= $Sport::Analytics::NHL::Report::LATE_START_IN_2012
574 16 2 0 $date =~ /^\d/ && !$force_us
641 330 188 202158 $$tpointer and ref $$tpointer
677 3328 0 858 $event->{'team2'} and $event->{'team2'} ne 'OTH'

or 2 conditions

line l !l condition
252 40 1 shift() || {}
354 16 0 $self->{'status'} ||= 'Preview'
558 0 16 $self->{'periods'} ||= [{}, {}, {}]
561 16 0 $self->{'attendance'} ||= 0
570 2 16 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
229 3 36 2 $args->{'data'} or $args->{'file'}
238 7 30 1 $args->{'type'} || ($args->{'file'} ? $args->{'file'} =~ m[/([A-Z]{2}).[a-z]{4}$] ? $1 : '' : '')
316 0 0 6 $self->{'GS'} || $self->{'ES'} || $self->{'RO'} || $self->{'PL'}
358 0 0 16 $self->{'status'} eq 'End of Game' or $self->{'status'} eq 'End of Period 4'
0 0 16 $self->{'status'} eq 'End of Game' or $self->{'status'} eq 'End of Period 4' or $self->{'status'} eq 'Period 4 (0:00 Remaining)'
544 0 0 16 $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
578 2 16 0 $self->{'season'} ||= $year
604 0 18 0 $self->{'tz'} ||= $start_tz
626 0 0 0 $self->{'ot'} || $self->{'so'}
636 226 0 0 shift() || $self->{'html'} || $self
666 248 0 0 $event->{'player1'} ||= $Sport::Analytics::NHL::Report::BENCH_PLAYER_ID
682 0 4186 0 $event->{'stage'} == $Sport::Analytics::NHL::Report::PLAYOFF || $event->{'stage'} == $Sport::Analytics::NHL::Report::REGULAR && $event->{'period'} < 5