Branch Coverage

blib/lib/Travel/Status/DE/EFA/Departure.pm
Criterion Covered Total %
branch 6 50 12.0


line true false branch
36 40 0 if (my $dt = $departure->{'dateTime'})
48 38 2 if (my $dt = $departure->{'realDateTime'})
89 0 40 if (defined $ref->{'delay'} and $ref->{'delay'} eq '-9999') { }
101 0 40 if ($departure->{'prevStopSeq'})
105 0 40 if ($departure->{'onwardStopSeq'})
117 0 0 unless ($stop_seq)
122 0 0 if (ref $stop_seq eq "HASH")
125 0 0 if ($stop_seq->{'ref'}{'id'} eq $requested_id)
135 0 0 if ($ref->{'arrDateTimeSec'}) { }
0 0 elsif ($ref->{'arrDateTime'}) { }
143 0 0 if ($ref->{'depDateTimeSec'}) { }
0 0 elsif ($ref->{'depDateTime'}) { }
166 0 0 $ref->{'arrValid'} ? :
0 0 $ref->{'depValid'} ? :
175 0 0 if ($self->{'id'})
179 0 0 scalar $self->route_pre ? :
0 0 scalar $self->route_pre && ($self->route_pre)[0]->sched_dep ? :
221 0 0 if ($stop->name =~ / Bf | Hbf | Flughafen | [Bb]ahnhof
231 0 0 if (@via_main and $via_main[-1] == $last_stop)
234 0 0 if (@via and $via[-1] == $last_stop)
238 0 0 if (@via_main and @via and $via[0] == $via_main[0])
242 0 0 if (@via < $max_parts) { }
246 0 0 if (@via_main >= $max_parts) { }
255 0 0 if (&any(sub {
279 0 0 if ($ret->{$k})