Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
261 0 0 0 $sublist and @{$sublist;}
298 675 31 54 $attrib{'status'} and $attrib{'status'} eq "c"
675 31 0 $attrib{'status'} and $attrib{'status'} eq "a"
369 602 31 53 $attrib{'status'} and $attrib{'status'} eq "c"
602 31 0 $attrib{'status'} and $attrib{'status'} eq "a"
549 0 0 0 $self->{'arrival_is_additional'} and $self->{'departure_is_additional'}
552 0 0 0 $self->{'arrival_is_additional'} and not defined $self->{'departure_is_additional'}
557 0 0 0 not defined $self->{'arrival_is_additional'} and $self->{'departure_is_additional'}
568 1 0 1 $self->{'arrival_is_cancelled'} and $self->{'departure_is_cancelled'}
571 1 0 0 $self->{'arrival_is_cancelled'} and not defined $self->{'departure_is_cancelled'}
576 1 0 0 not defined $self->{'arrival_is_cancelled'} and $self->{'departure_is_cancelled'}
708 0 0 1 $msg->[2] != 84 and $msg->[2] != 88
0 0 1 $msg->[2] != 84 and $msg->[2] != 88 and $msg->[2] != 89
809 1 1 2 @via_main and $via_main[-1] eq $last_stop
812 1 0 3 @via and $via[-1] eq $last_stop
816 2 0 2 @via_main and @via
2 1 1 @via_main and @via and $via[0] eq $via_main[0]
831 2 0 4 @via_show < $max_parts and @via_main

or 2 conditions

line l !l condition
207 985 155 $ref->{'route_pre'} // ""
209 939 201 $ref->{'route_post'} // ""
289 0 3 $superseded{$msg} // []
332 0 112 $self->{'arrival_delay'} //= 0
333 0 112 $self->{'delay'} //= 0
344 190 0 $attrib{'route_pre'} // ""
358 184 0 $attrib{'sched_route_pre'} // ""
403 102 12 $self->{'delay'} //= 0
404 0 114 $self->{'departure_delay'} //= 0
415 182 0 $attrib{'route_post'} // ""
429 176 0 $attrib{'sched_route_post'} // ""
615 1 0 $self->{'classes'} // ""
764 268 0 $self->{'type'} // "Zug"
268 0 ($self->{'line_no'} // $self->{'train_no'}) // "-"
796 0 4 $max_parts //= 3
884 0 0 $self->{$ref_key} // []

or 3 conditions

line l !l&&r !l&&!r condition
165 1140 0 0 $ref->{'strptime_obj'} //= "DateTime::Format::Strptime"->new("pattern", "%y%m%d%H%M", "time_zone", "Europe/Berlin")
190 985 155 0 defined $ar or defined $dp
200 939 201 0 $dp // $ar
222 901 201 0 $ref->{'route_end'} || $ref->{'route_post'}[-1] || $ref->{'station'}
227 937 155 0 $ref->{'route_start'} || $ref->{'route_pre'}[0] || $ref->{'station'}
530 0 0 10 $self->{'is_cancelled'} ||= $result->{'is_cancelled'}
589 0 0 0 $self->{'comparator'} //= "List::Compare"->new({"lists", [$self->{'sched_route_post'}, $self->{'route_post'}], "unsorted", 1})
603 0 0 0 $self->{'comparator'} //= "List::Compare"->new({"lists", [$self->{'sched_route_post'}, $self->{'route_post'}], "unsorted", 1})
764 0 268 0 $self->{'line_no'} // $self->{'train_no'}
833 0 0 4 &any(sub {
870 14 0 0 $translation{$msg} // "?($msg)"