Branch Coverage

blib/lib/Travel/Status/DE/IRIS/Result.pm
Criterion Covered Total %
branch 66 98 67.3


line true false branch
179 24 1116 if ($opt{'transfer'})
190 0 1140 unless (defined $ar or defined $dp)
214 38 1102 $ref->{'route_end'} ? :
215 1140 0 $ref->{'route_post'} ? :
238 0 27180 if ($stop =~ /^Betriebsstelle nicht bekannt (\d+)$/u)
239 0 0 if ($fixup{$1})
249 4655 356 if (defined $string)
261 0 0 unless ($sublist and @{$sublist;})
298 54 706 if ($attrib{'status'} and $attrib{'status'} eq 'c') { }
0 706 elsif ($attrib{'status'} and $attrib{'status'} eq 'a') { }
310 0 760 if ($attrib{'arrival_hidden'})
316 184 576 if ($attrib{'plan_arrival_ts'})
321 648 112 if ($attrib{'arrival_ts'}) { }
324 640 8 unless ($self->{'arrival_is_cancelled'})
336 14 746 if ($attrib{'platform'}) { }
343 190 570 if (defined $attrib{'route_pre'}) { }
346 144 46 if (@{$self->{'route_pre'};})
356 184 576 if ($attrib{'sched_route_pre'})
369 53 633 if ($attrib{'status'} and $attrib{'status'} eq 'c') { }
0 633 elsif ($attrib{'status'} and $attrib{'status'} eq 'a') { }
381 0 686 if ($attrib{'departure_hidden'})
387 176 510 if ($attrib{'plan_departure_ts'})
392 572 114 if ($attrib{'departure_ts'}) { }
395 564 8 unless ($self->{'departure_is_cancelled'})
407 7 679 if ($attrib{'platform'}) { }
414 182 504 if (defined $attrib{'route_post'}) { }
417 137 45 if (@{$self->{'route_post'};})
427 176 510 if ($attrib{'sched_route_post'})
549 0 0 if ($self->{'arrival_is_additional'} and $self->{'departure_is_additional'})
552 0 0 if ($self->{'arrival_is_additional'} and not defined $self->{'departure_is_additional'})
557 0 0 if (not defined $self->{'arrival_is_additional'} and $self->{'departure_is_additional'})
568 1 0 if ($self->{'arrival_is_cancelled'} and $self->{'departure_is_cancelled'})
571 0 1 if ($self->{'arrival_is_cancelled'} and not defined $self->{'departure_is_cancelled'})
576 0 0 if (not defined $self->{'arrival_is_cancelled'} and $self->{'departure_is_cancelled'})
658 2 2 if ($self->{'arrival_wings'})
667 4 2 if ($self->{'departure_wings'})
676 0 0 if ($self->{'replaced_by'})
685 0 0 if ($self->{'replacement_for'})
708 1 0 if ($msg->[2] != 84 and $msg->[2] != 88 and $msg->[2] != 89)
802 9 7 if ($stop =~ / HB $ | hl\.n\. $ | Hbf | Centraal | Flughafen /ux)
807 4 0 $self->{'route_post_incomplete'} ? :
809 2 2 if (@via_main and $via_main[-1] eq $last_stop)
812 3 1 if (@via and $via[-1] eq $last_stop)
816 1 1 if (@via_main and @via and $via[0] eq $via_main[0])
820 2 2 if (@via < $max_parts) { }
824 1 1 if (@via_main >= $max_parts) { }
833 0 4 if (&any(sub {
898 0 0 if (my $train_ref = $self->wing_of)
910 0 0 if (defined $copy{$datetime_key})