Branch Coverage

blib/lib/Travel/Status/DE/URA.pm
Criterion Covered Total %
branch 34 54 62.9


line true false branch
38 3 10 unless ($opt{'ura_base'} and $opt{'ura_version'})
66 0 10 if ($opt{'with_messages'})
69 0 10 if ($opt{'with_stops'})
80 0 10 if (substr($self->{'ura_instant_url'}, 0, 5) ne 'file:') { }
83 0 0 if (not $self->{'full_routes'} and $self->{'stop_id'})
87 0 0 if (defined $self->{'via_id'})
93 0 0 if ($self->{'line_id'})
98 0 0 if ($self->{'circle'})
108 1 9 if ($response->is_error)
115 0 9 if ($self->{'developer_mode'})
120 9 0 if (substr($self->{'ura_instant_url'}, 0, 5) eq 'file:')
148 9891 145782 if ($type == 0) { }
0 145782 elsif ($type == 2) { }
145773 9 elsif ($type == 1) { }
155 9891 0 unless (exists $self->{'stops'}{$stop_id})
193 2 1 if ($actual_match)
246 2 10 if ($via or $via_id)
261 12100 178167 if ($type != 1)
265 0 178167 if ($line_id and not $lineid eq $line_id)
269 111872 66295 if ($stop and not $stopname eq $stop)
273 0 66295 if ($stop_id and not $stopid eq $stop_id)
277 0 66295 unless ($timestamp)
284 32394 33901 if ($hide_past and $ts_now > $timestamp)
294 757 33144 if ($full_routes)
303 740 17 if ($via and &none(sub { $_->[1] eq $via; } , @route_post))
309 0 17 if ($via_id and &none(sub { $_->[2] eq $via_id; } , @route_post))
315 0 17 if ($hide_past)