Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
308 64 0 0 not $event->{'player1'} and $event->{'servedby'}
319 60 4 0 $event->{'servedby'} and $event->{'servedby'} =~ /^80/
428 1264 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 1264 0 $event_cell and ref $event_cell
777 1264 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 8848 1244 20 $pp == $DESCRIPTION_INDEX and $event->{'type'} eq 'GOAL'
802 1252 12 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 1264 0 0 $Sport::Analytics::NHL::Report::PL::BROKEN_EVENTS{$self->{'_id'}} and defined $Sport::Analytics::NHL::Report::PL::BROKEN_EVENTS{$self->{'_id'}}{$event->{'id'}}
1264 0 0 $Sport::Analytics::NHL::Report::PL::BROKEN_EVENTS{$self->{'_id'}} and defined $Sport::Analytics::NHL::Report::PL::BROKEN_EVENTS{$self->{'_id'}}{$event->{'id'}} and $Sport::Analytics::NHL::Report::PL::BROKEN_EVENTS{$self->{'_id'}}{$event->{'id'}} == 0
859 0 1264 0 $event and $event->{'period'} > 11
862 1252 0 12 $event->{'type'} eq 'PEND' || $event->{'type'} eq 'PSTR' and @{$self->{'events'};}
1252 12 0 $event->{'type'} eq 'PEND' || $event->{'type'} eq 'PSTR' and @{$self->{'events'};} and $self->{'events'}[-1]{'type'} eq $event->{'type'}
874 1264 0 0 $event->{'period'} == 5 and $self->{'stage'} == $Sport::Analytics::NHL::Report::PL::REGULAR
891 8 104 1296 ref $play_row and scalar @{$play_row->{'_content'};} >= @event_fields
895 1264 0 0 $event->{'type'} eq 'CHL' and $event->{'team1'} eq 'html'
901 1260 4 0 $event->{'on_ice1'} and ref $event->{'on_ice1'}
1264 0 0 $event->{'on_ice1'} and ref $event->{'on_ice1'} and ref $event->{'on_ice1'} ne 'ARRAY'
902 1260 4 0 $event->{'on_ice2'} and ref $event->{'on_ice2'}
1264 0 0 $event->{'on_ice2'} and ref $event->{'on_ice2'} and ref $event->{'on_ice2'} ne 'ARRAY'
919 60 0 4 $event->{'penalty'} =~ /\bbench\b/i and not $event->{'penalty'} =~ /leav/i
957 1264 0 0 $event->{'period'} == 5 and $self->{'stage'} == $Sport::Analytics::NHL::Report::PL::REGULAR

or 2 conditions

line l !l condition
307 64 0 $event->{'player1'} ||= ''
318 60 4 $event->{'location'} ||= 'Unk'
338 0 0 $event->{'location'} ||= 'Unk'
395 0 0 $event->{'distance'} ||= 999
439 0 0 $1 || 'League'
473 524 0 $event->{'shot_type'} ||= 'Unknown'
474 128 0 $event->{'miss'} ||= 'Unknown'
527 0 0 $event->{'on_ice'} ||= []
534 1260 1260 $event->{'on_ice'} ||= []
538 14544 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 32 0 1264 $event_cell eq '#' or $event_cell and ref $event_cell
862 12 0 1252 $event->{'type'} eq 'PEND' || $event->{'type'} eq 'PSTR'
893 32 0 1264 not $event or $self->skip_event($event)
908 4 0 8 $self->{'events'}[-1]{'type'} eq 'GEND' or $gend