Branch Coverage

blib/lib/Travel/Routing/DE/EFA.pm
Criterion Covered Total %
branch 65 92 70.6


line true false branch
52 3 1 if ($conf{'departure_time'}) { }
1 0 elsif ($conf{'arrival_time'}) { }
67 2 2 unless ($time =~ / ^ [0-2]? \d : [0-5]? \d $ /x)
97 0 4 if ($date eq "tomorrow")
104 0 2 unless (defined $day and length $day and $day >= 1 and $day <= 31 and defined $month and length $month and $month >= 1 and $month <= 12)
122 1 1 unless (defined $year and length $year)
143 5 67 if ($exclude_type eq $mapping[$map_id])
148 1 5 unless ($ok)
217 1 0 if ($duration) { }
232 1 1 if ($walk_speed ~~ ['normal', 'fast', 'slow']) { }
297 0 55 unless ($place and $stop)
308 55 0 if ($type ~~ ["address", "poi", "stop"])
396 1 26 if ($conf->{'via'})
399 4 23 if ($conf->{'arrival_time'} or $conf->{'departure_time'})
402 4 21 if ($conf->{'date'})
405 3 20 if ($conf->{'exclude'})
408 1 21 if ($conf->{'max_interchanges'})
411 0 22 if ($conf->{'num_results'})
414 4 18 if ($conf->{'select_interchange_by'})
417 1 20 if ($conf->{'use_near_stops'})
420 4 17 if ($conf->{'train_type'})
423 2 18 if ($conf->{'walk_speed'})
426 1 18 if ($conf->{'with_bike'})
429 0 19 if ($conf->{'with_low_platform'})
432 0 19 if ($conf->{'with_wheelchair'})
435 0 19 if ($conf->{'without_solid_stairs'})
438 0 19 if ($conf->{'without_escalators'})
441 0 19 if ($conf->{'without_elevators'})
461 0 27 unless ($ref->{'config'}{'efa_url'})
477 0 19 unless (defined $conf{'submit'} and $conf{'submit'} == 0)
516 0 0 if ($response->is_error)
625 4 0 if ($e_fare)
662 5 5 $e_delay ? :
666 10 0 if ($self->{'config'}{'rm_base'})
671 10 0 if ($self->{'config'}{'sm_base'})
697 5 5 if ($e_fp)
722 10 52 if (not $e_vdate && $e_vtime or $e_vdate->getAttribute("weekday") == -1)
731 18 34 if ($name ~~ [$hash->{'departure_stop'}, $hash->{'arrival_stop'}])
768 0 1 if ($self->{'config'}{'developer_mode'})
783 0 1 if ($err)
792 0 1 if (not defined $self->{'routes'} or @{$self->{'routes'};} == 0)
813 0 3 unless ($e_place and $e_name)
821 0 3 if ($s_place eq "list")
831 0 3 if ($s_name eq "list")
841 0 3 if ($s_place eq "notidentified")
848 0 3 if ($s_name eq "notidentified")