Branch Coverage

blib/lib/Travel/Status/DE/IRIS.pm
Criterion Covered Total %
branch 72 150 48.0


line true false branch
28 0 47 if ($@)
39 0 0 unless ($opt{'station'})
47 0 0 if (60 - $self->{'datetime'}->minute < $self->{'lookahead'} % 60)
51 0 0 if ($self->{'datetime'}->minute < $self->{'lookbehind'} % 60)
57 0 0 if (@candidates != 1 and $opt{'station'} =~ /^\d+$/u)
66 0 0 if (@candidates == 0)
69 0 0 if (@candidates >= 2)
90 0 0 unless ($seen{$ref})
101 0 0 if (@candidates == 1)
154 0 0 if ($realtime_result->{'status'} eq "rejected")
179 1 12 unless ($opt{'station'})
211 0 12 if (60 - $self->{'datetime'}->minute < $self->{'lookahead'} % 60)
215 0 12 if ($self->{'datetime'}->minute < $self->{'lookbehind'} % 60)
219 0 12 if ($opt{'async'})
223 12 0 unless ($self->{'user_agent'})
259 0 0 unless ($ref_status->errstr)
264 2 10 if ($self->{'errstr'})
289 10 0 unless ($self->{'keep_transfers'})
297 24 1101 if $_->transfer
304 79 663 if $_->transfer
306 10 2 if ($result)
318 1069 44 if not $d->is_negative
334 0 0 if ($self->{'developer_mode'})
340 0 0 if ($cache)
342 0 0 if ($content)
343 0 0 if ($self->{'developer_mode'})
350 0 0 if ($self->{'developer_mode'})
357 0 0 if (my $err = $tx->error)
363 0 0 if ($cache)
383 0 52 if ($self->{'developer_mode'})
387 0 52 if ($cache)
389 0 0 if ($content)
390 0 0 if ($self->{'developer_mode'})
397 0 52 if ($self->{'developer_mode'})
404 5 47 if ($res->is_error)
409 0 47 if ($cache)
427 0 0 if ($xml_err)
433 0 0 unless ($station_node)
482 1 11 if ($err)
483 1 0 if ($opt{'root'}) { }
495 0 11 if ($xml_err)
502 1 10 unless ($station_node)
503 0 1 if ($self->{'developer_mode'})
506 1 0 if ($opt{'root'}) { }
521 0 10 if ($station_node->getAttribute("name") =~ / ZOB/u)
528 0 10 if ($station_node->getAttribute("ds100") =~ / ^ D \d+ $ /ux)
550 0 10 if ($self->{'developer_mode'})
554 0 10 if ($opt{'recursive'} and defined $station_node->getAttribute("meta"))
563 0 10 if (@queue)
581 0 1140 unless ($e_tl)
598 985 155 if ($e_ar)
609 939 201 if ($e_dp)
620 20 1120 if ($data{'arrival_wing_ids'})
623 13 1127 if ($data{'departure_wing_ids'})
633 1125 15 unless ($self->{'departure_by_id'}{$id})
651 0 0 if ($xml_err)
683 4 26 if ($err)
690 0 26 if ($xml_err)
702 0 26 if ($self->{'developer_mode'} and not scalar $xml->findnodes("/timetable/s"))
721 0 0 if ($xml_err)
749 0 10 if ($err)
756 0 10 if ($xml_err)
781 121 2426 if (not $result and ($s->findnodes($self->{'xp_tl'}))[0])
783 121 0 if ($result)
787 1720 827 unless ($result)
791 827 0 unless ($self->{'serializable'})
808 3069 528 if (defined $value and $value > 1 and $value < 100)
832 760 67 if ($e_ar)
846 686 141 if ($e_dp)
873 0 0 if $_->type eq $type
882 7 736 if ($r->{'departure_wing_ids'})
885 8 0 if ($wingref)
890 13 730 if ($r->{'arrival_wing_ids'})
893 14 0 if ($wingref)
909 0 0 if ($ref)