Condition Coverage

blib/lib/Travel/Status/DE/EFA.pm
Criterion Covered Total %
condition 26 81 32.1


and 3 conditions

line !l l&&!r l&&r condition
89 2 0 0 $opt{'type'} and not $opt{'type'} =~ / ^ (?: stop | stopID | address | poi ) $ /x
132 2 0 0 $opt{'time'} and $opt{'time'} =~ / ^ (?<hour> \d\d? ) : (?<minute> \d\d ) $ /x
144 2 0 0 $opt{'date'} and $opt{'date'} =~ / ^ (?<day> \d\d? ) [.] (?<month> \d\d? ) [.]
458 2 0 2 $m->{'name'} eq "error" and $m->{'value'} eq "name list"
475 2 0 0 $m->{'name'} eq "error" and $m->{'value'} eq "place list"
646 0 0 0 ref $json->{'stopFinder'}{'points'} eq "HASH" and exists $json->{'stopFinder'}{'points'}{'point'}
675 1 1 0 $json->{'departureList'} and ref $json->{'departureList'} eq "HASH"

or 2 conditions

line l !l condition
74 0 2 $opt{'timeout'} //= 10
122 0 2 $opt{'time_zone'} //= "Europe/Berlin"
242 0 2 $opt{'type'} // "stop"
0 2 $opt{'num_results'} // 40
265 0 2 $opt{'lwp_options'} // {"timeout", 10}
437 1 1 $json->{'dm'}{'message'} // []
457 2 0 $json->{'dm'}{'message'} // []
461 2 0 $json->{'dm'}{'points'} // []
478 0 0 $json->{'dm'}{'points'} // []
524 0 0 $self->{'response'}{'dm'}{'itdOdvAssignedStops'} // []
555 0 0 $self->{'response'}{'dm'}{'points'}{'point'}{'infos'} // []
562 0 0 $self->{'infos'} // []
572 0 1 $self->{'response'}{'servingLines'}{'lines'} // []
576 0 1 $self->{'lines'} // []
582 0 0 $line->{'mode'} // {}
620 0 0 $json->{'locations'} // []
652 0 0 $json->{'stopFinder'}{'points'} // []
680 1 1 $json->{'departureList'} // []

or 3 conditions

line l !l&&r !l&&!r condition
79 0 0 2 $opt{'coord'} or $opt{'name'}
0 0 2 $opt{'coord'} or $opt{'name'} or $opt{'stopfinder'}
0 0 2 $opt{'coord'} or $opt{'name'} or $opt{'stopfinder'} or $opt{'stopseq'}
0 2 0 $opt{'coord'} or $opt{'name'} or $opt{'stopfinder'} or $opt{'stopseq'} or $opt{'from_json'}
112 0 0 0 $opt{'time_zone'} //= $service->{'time_zone'}
127 0 2 0 $opt{'datetime'} // "DateTime"->now("time_zone", $opt{'time_zone'})
321 0 0 0 $self->{'cache_key'} // $url
358 0 0 0 $self->{'cache_key'} // $url