Condition Coverage

blib/lib/Travel/Status/DE/HAFAS/Journey.pm
Criterion Covered Total %
condition 42 104 40.3


and 3 conditions

line !l l&&!r l&&r condition
52 0 0 25 $msg->{'type'} eq "REM" and defined $msg->{'remX'}
0 0 0 $msg->{'type'} eq "HIM" and defined $msg->{'himX'}
150 0 4 0 $stops[0] and $stops[0]{'loc'}
229 0 0 0 defined $load and $load > 10
259 5 0 0 defined $self->{'rt_platform'} and defined $self->{'sched_platform'}
310 0 0 215 $self->{'route'} and @{$self->{'route'};}
311 0 208 7 $self->{'route'}[0] and $self->{'route'}[0]{'stop'}
341 8 4 6 @via_main and $via_main[-1]->loc->name eq $last_stop->loc->name
344 0 18 0 @via and $via[-1]->loc->name eq $last_stop->loc->name
348 8 0 10 @via_main and @via
8 4 6 @via_main and @via and $via[0]->loc->name eq $via_main[0]->loc->name
364 16 0 12 @via_show < $max_parts and @via_main

or 2 conditions

line l !l condition
30 34 0 $opt{'common'}{'icoL'} // []
31 3 31 $opt{'common'}{'tcocL'} // []
32 34 0 $opt{'common'}{'remL'} // []
33 0 34 $opt{'common'}{'himL'} // []
51 4 30 $journey->{'msgL'} // []
65 34 0 $journey->{'stopL'} // []
97 34 0 $hafas->get_active_service->{'time_zone'} // "Europe/Berlin"
103 34 0 $journey->{'stopL'} // []
222 0 30 $journey->{'stbStop'}{'dTrnCmpSX'}{'tcocX'} // []
326 0 18 $max_parts //= 3

or 3 conditions

line l !l&&r !l&&!r condition
40 0 34 0 $opt{'date'} // $journey->{'date'}
65 34 0 0 @{$journey->{'stopL'} // [];} or $journey->{'stbStop'}
131 34 0 0 $route_end // $direction
153 0 0 0 $ref->{'is_cancelled'} ||= $journey->{'stbStop'}{'aCncl'}
157 1 0 29 $ref->{'is_cancelled'} ||= $journey->{'stbStop'}{'dCncl'}
171 14 0 16 $journey->{'stbStop'}{'dPlatfS'} // $journey->{'stbStop'}{'dPltfS'}{'txt'}
173 0 0 30 $journey->{'stbStop'}{'dPlatfR'} // $journey->{'stbStop'}{'dPltfR'}{'txt'}
174 0 14 16 $ref->{'rt_platform'} // $ref->{'sched_platform'}
211 29 1 0 $datetime_r // $datetime_s
226 0 0 0 $tco_kv->{'rRT'} // $tco_kv->{'r'}
289 0 0 0 $_->prod_arr // $_->prod_dep
290 0 0 0 $_->prod_arr // $_->prod_dep
0 0 0 $_->prod_arr or $_->prod_dep
366 0 0 12 &any(sub {
382 0 0 0 $stop->loc->name eq $req_stop or $stop->loc->eva eq $req_stop
383 0 0 0 $stop->prod_dep // $stop->prod_arr