Condition Coverage

blib/lib/Travel/Status/DE/IRIS/Result.pm
Criterion Covered Total %
condition 59 117 50.4


and 3 conditions

line !l l&&!r l&&r condition
265 0 0 0 $sublist and @{$sublist;}
302 675 31 54 $attrib{'status'} and $attrib{'status'} eq "c"
675 31 0 $attrib{'status'} and $attrib{'status'} eq "a"
373 602 31 53 $attrib{'status'} and $attrib{'status'} eq "c"
602 31 0 $attrib{'status'} and $attrib{'status'} eq "a"
551 0 0 0 $self->{'arrival_is_additional'} and $self->{'departure_is_additional'}
554 0 0 0 $self->{'arrival_is_additional'} and not defined $self->{'departure_is_additional'}
559 0 0 0 not defined $self->{'arrival_is_additional'} and $self->{'departure_is_additional'}
570 1 0 1 $self->{'arrival_is_cancelled'} and $self->{'departure_is_cancelled'}
573 1 0 0 $self->{'arrival_is_cancelled'} and not defined $self->{'departure_is_cancelled'}
578 1 0 0 not defined $self->{'arrival_is_cancelled'} and $self->{'departure_is_cancelled'}
710 0 0 1 $msg->[2] != 84 and $msg->[2] != 88
0 0 1 $msg->[2] != 84 and $msg->[2] != 88 and $msg->[2] != 89
811 1 1 2 @via_main and $via_main[-1] eq $last_stop
814 1 0 3 @via and $via[-1] eq $last_stop
818 2 0 2 @via_main and @via
2 1 1 @via_main and @via and $via[0] eq $via_main[0]
833 2 0 4 @via_show < $max_parts and @via_main

or 2 conditions

line l !l condition
211 985 155 $ref->{'route_pre'} // ""
213 939 201 $ref->{'route_post'} // ""
293 0 3 $superseded{$msg} // []
336 0 112 $self->{'arrival_delay'} //= 0
337 0 112 $self->{'delay'} //= 0
348 190 0 $attrib{'route_pre'} // ""
362 184 0 $attrib{'sched_route_pre'} // ""
407 102 12 $self->{'delay'} //= 0
408 0 114 $self->{'departure_delay'} //= 0
419 182 0 $attrib{'route_post'} // ""
433 176 0 $attrib{'sched_route_post'} // ""
617 1 0 $self->{'classes'} // ""
766 268 0 $self->{'type'} // "Zug"
268 0 ($self->{'line_no'} // $self->{'train_no'}) // "-"
798 0 4 $max_parts //= 3

or 3 conditions

line l !l&&r !l&&!r condition
169 1140 0 0 $ref->{'strptime_obj'} //= "DateTime::Format::Strptime"->new("pattern", "%y%m%d%H%M", "time_zone", "Europe/Berlin")
194 985 155 0 defined $ar or defined $dp
204 939 201 0 $dp // $ar
226 901 201 0 $ref->{'route_end'} || $ref->{'route_post'}[-1] || $ref->{'station'}
231 937 155 0 $ref->{'route_start'} || $ref->{'route_pre'}[0] || $ref->{'station'}
532 0 0 10 $self->{'is_cancelled'} ||= $result->{'is_cancelled'}
591 0 0 0 $self->{'comparator'} //= "List::Compare"->new({"lists", [$self->{'sched_route_post'}, $self->{'route_post'}], "unsorted", 1})
605 0 0 0 $self->{'comparator'} //= "List::Compare"->new({"lists", [$self->{'sched_route_post'}, $self->{'route_post'}], "unsorted", 1})
766 0 268 0 $self->{'line_no'} // $self->{'train_no'}
835 0 0 4 $stop ~~ \@via_show or $stop eq $last_stop
872 14 0 0 $translation{$msg} // "?($msg)"