Condition Coverage

blib/lib/Sport/Analytics/NHL/Report/PL.pm
Criterion Covered Total %
condition 46 133 34.5


and 3 conditions

line !l l&&!r l&&r condition
308 32 0 0 not $event->{'player1'} and $event->{'servedby'}
319 30 2 0 $event->{'servedby'} and $event->{'servedby'} =~ /^80/
428 632 0 0 defined $$evx{$event->{'id'}} and $$evx{$event->{'id'}}{'description'}
637 0 0 0 defined $Sport::Analytics::NHL::Report::PL::BROKEN_EVENTS{'PL'}{$self->{'_id'}}{$event->{'id'}} and !$Sport::Analytics::NHL::Report::PL::BROKEN_EVENTS{'PL'}{$self->{'_id'}}{$event->{'id'}} || $Sport::Analytics::NHL::Report::PL::BROKEN_EVENTS{'PL'}{$self->{'_id'}}{$event->{'id'}}{'special'}
643 0 0 0 $event->{'period'} > 5 and $self->{'stage'} == $Sport::Analytics::NHL::Report::PL::REGULAR
649 0 0 0 $event->{'period'} =~ /\d/ and $event->{'period'} == 5
0 0 0 $event->{'period'} =~ /\d/ and $event->{'period'} == 5 and $self->{'stage'} == $Sport::Analytics::NHL::Report::PL::REGULAR
724 0 0 0 $r == 1 and not @{$self->{'events'};}
736 0 0 0 $evx and $evx->{'special'}
756 0 0 0 @{$self->{'events'};} and $self->{'events'}[-1]{'special'}
775 0 632 0 $event_cell and ref $event_cell
777 632 0 0 defined $Sport::Analytics::NHL::Report::PL::BROKEN_EVENTS{'PL'}{$self->{'_id'}}{$event_cell} and not $Sport::Analytics::NHL::Report::PL::BROKEN_EVENTS{'PL'}{$self->{'_id'}}{$event_cell}
787 4424 622 10 $pp == $DESCRIPTION_INDEX and $event->{'type'} eq 'GOAL'
802 626 6 0 $event->{'type'} eq 'PEND' and not $event->{'time'} =~ /^\d+/
820 0 0 0 $self->{'events'}[-$e]{'period'} == 5 and $self->{'stage'} == $Sport::Analytics::NHL::Report::PL::REGULAR
858 0 632 0 $event and $event->{'period'} > 11
861 626 0 6 $event->{'type'} eq 'PEND' || $event->{'type'} eq 'PSTR' and @{$self->{'events'};}
626 6 0 $event->{'type'} eq 'PEND' || $event->{'type'} eq 'PSTR' and @{$self->{'events'};} and $self->{'events'}[-1]{'type'} eq $event->{'type'}
873 632 0 0 $event->{'period'} == 5 and $self->{'stage'} == $Sport::Analytics::NHL::Report::PL::REGULAR
890 4 52 648 ref $play_row and scalar @{$play_row->{'_content'};} >= @event_fields
894 632 0 0 $event->{'type'} eq 'CHL' and $event->{'team1'} eq 'html'
900 630 2 0 $event->{'on_ice1'} and ref $event->{'on_ice1'}
632 0 0 $event->{'on_ice1'} and ref $event->{'on_ice1'} and ref $event->{'on_ice1'} ne 'ARRAY'
901 630 2 0 $event->{'on_ice2'} and ref $event->{'on_ice2'}
632 0 0 $event->{'on_ice2'} and ref $event->{'on_ice2'} and ref $event->{'on_ice2'} ne 'ARRAY'
920 30 0 2 $event->{'penalty'} =~ /\bbench\b/i and not $event->{'penalty'} =~ /leav/i
958 632 0 0 $event->{'period'} == 5 and $self->{'stage'} == $Sport::Analytics::NHL::Report::PL::REGULAR

or 2 conditions

line l !l condition
307 32 0 $event->{'player1'} ||= ''
318 30 2 $event->{'location'} ||= 'Unk'
338 0 0 $event->{'location'} ||= 'Unk'
395 0 0 $event->{'distance'} ||= 999
439 0 0 $1 || 'League'
473 262 0 $event->{'shot_type'} ||= 'Unknown'
474 64 0 $event->{'miss'} ||= 'Unknown'
527 0 0 $event->{'on_ice'} ||= []
534 630 630 $event->{'on_ice'} ||= []
538 7272 0 $on_ice_font->attr('title') || ''
575 0 0 $self->{'events'}[-1]{'on_ice'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
619 0 0 0 not $line =~ /\w/ or $line =~ /^\<\!\-\-/
0 0 0 not $line =~ /\w/ or $line =~ /^\<\!\-\-/ or $line =~ /^\s*(\-+|\#)/
0 0 0 $self->{'goal_mode'} || $line =~ /^\s*(\d+|SO\s|F\s)/
0 0 0 not $line =~ /\w/ or $line =~ /^\<\!\-\-/ or $line =~ /^\s*(\-+|\#)/ or not $self->{'goal_mode'} || $line =~ /^\s*(\d+|SO\s|F\s)/
637 0 0 0 !$Sport::Analytics::NHL::Report::PL::BROKEN_EVENTS{'PL'}{$self->{'_id'}}{$event->{'id'}} || $Sport::Analytics::NHL::Report::PL::BROKEN_EVENTS{'PL'}{$self->{'_id'}}{$event->{'id'}}{'special'}
756 0 0 0 @{$self->{'events'};} and $self->{'events'}[-1]{'special'} or $adjust
775 16 0 632 $event_cell eq '#' or $event_cell and ref $event_cell
861 6 0 626 $event->{'type'} eq 'PEND' || $event->{'type'} eq 'PSTR'
892 16 0 632 not $event or $self->skip_event($event)
907 2 0 4 $self->{'events'}[-1]{'type'} eq 'GEND' or $gend