Branch Coverage

blib/lib/Travel/Status/DE/URA.pm
Criterion Covered Total %
branch 32 50 64.0


line true false branch
38 3 10 unless ($opt{'ura_base'} and $opt{'ura_version'})
66 0 10 if ($opt{'with_stops'})
77 0 10 if (substr($self->{'ura_instant_url'}, 0, 5) ne 'file:') { }
80 0 0 if (not $self->{'full_routes'} and $self->{'stop_id'})
84 0 0 if (defined $self->{'via_id'})
90 0 0 if ($self->{'line_id'})
95 0 0 if ($self->{'circle'})
105 1 9 if ($response->is_error)
112 0 9 if ($self->{'developer_mode'})
117 9 0 if (substr($self->{'ura_instant_url'}, 0, 5) eq 'file:')
145 9891 145782 if ($type == 0)
152 9891 0 unless (exists $self->{'stops'}{$stop_id})
161 145773 9900 if ($type == 1)
177 2 1 if ($actual_match)
211 2 10 if ($via or $via_id)
226 12100 178167 if ($type != 1)
230 0 178167 if ($line_id and not $lineid eq $line_id)
234 111872 66295 if ($stop and not $stopname eq $stop)
238 0 66295 if ($stop_id and not $stopid eq $stop_id)
242 0 66295 unless ($timestamp)
249 32394 33901 if ($hide_past and $ts_now > $timestamp)
259 757 33144 if ($full_routes)
268 740 17 if ($via and &none(sub { $_->[1] eq $via; } , @route_post))
274 0 17 if ($via_id and &none(sub { $_->[2] eq $via_id; } , @route_post))
280 0 17 if ($hide_past)