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
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"
553 0 0 0 $self->{'arrival_is_additional'} and $self->{'departure_is_additional'}
556 0 0 0 $self->{'arrival_is_additional'} and not defined $self->{'departure_is_additional'}
561 0 0 0 not defined $self->{'arrival_is_additional'} and $self->{'departure_is_additional'}
572 1 0 1 $self->{'arrival_is_cancelled'} and $self->{'departure_is_cancelled'}
575 1 0 0 $self->{'arrival_is_cancelled'} and not defined $self->{'departure_is_cancelled'}
580 1 0 0 not defined $self->{'arrival_is_cancelled'} and $self->{'departure_is_cancelled'}
712 0 0 1 $msg->[2] != 84 and $msg->[2] != 88
0 0 1 $msg->[2] != 84 and $msg->[2] != 88 and $msg->[2] != 89
813 1 1 2 @via_main and $via_main[-1] eq $last_stop
816 1 0 3 @via and $via[-1] eq $last_stop
820 2 0 2 @via_main and @via
2 1 1 @via_main and @via and $via[0] eq $via_main[0]
835 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'} // ""
619 1 0 $self->{'classes'} // ""
768 268 0 $self->{'type'} // "Zug"
268 0 ($self->{'line_no'} // $self->{'train_no'}) // "-"
800 0 4 $max_parts //= 3
888 0 0 $self->{$ref_key} // []

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'}
534 0 0 10 $self->{'is_cancelled'} ||= $result->{'is_cancelled'}
593 0 0 0 $self->{'comparator'} //= "List::Compare"->new({"lists", [$self->{'sched_route_post'}, $self->{'route_post'}], "unsorted", 1})
607 0 0 0 $self->{'comparator'} //= "List::Compare"->new({"lists", [$self->{'sched_route_post'}, $self->{'route_post'}], "unsorted", 1})
768 0 268 0 $self->{'line_no'} // $self->{'train_no'}
837 0 0 4 $stop ~~ \@via_show or $stop eq $last_stop
874 14 0 0 $translation{$msg} // "?($msg)"