Condition Coverage

blib/lib/Travel/Status/DE/HAFAS.pm
Criterion Covered Total %
condition 34 124 27.4


and 3 conditions

line !l l&&!r l&&r condition
66 0 5 0 defined $service and not exists $hafas_instance->{$service}
409 0 0 0 $content and not $content =~ / CGI_NO_SERVER | CGI_READ_FAILED /ux
494 5 0 0 $self->{'raw_json'}{'err'} and $self->{'raw_json'}{'err'} ne "OK"
0 5 0 defined $self->{'raw_json'}{'cInfo'}{'code'} and $self->{'raw_json'}{'cInfo'}{'code'} ne "OK"
5 0 0 defined $self->{'raw_json'}{'cInfo'}{'code'} and $self->{'raw_json'}{'cInfo'}{'code'} ne "OK" and $self->{'raw_json'}{'cInfo'}{'code'} ne "VH"
535 142 5 1 $code eq $message->{'code'} and $text eq $message->{'text'}
602 3 0 0 $journey->{'polyG'} and @{$journey->{'polyG'}{'polyXL'} // [];}
725 0 0 0 $service and exists $hafas_instance->{$service}{'stopfinder'}
747 0 0 0 $service and exists $hafas_instance->{$service}{'stopfinder'}
834 0 0 0 defined $service and exists $hafas_instance->{$service}

or 2 conditions

line l !l condition
44 0 5 $conf{'lwp_options'} // {"timeout", 10}
71 5 0 $hafas_instance->{$service}{'time_zone'} // "Europe/Berlin"
103 0 3 $conf{'journey'}{'name'} // 0
155 0 0 $conf{'results'} // 30
176 0 0 $conf{'results'} // 30
191 0 1 $conf{'results'} // 30
192 0 1 $conf{'lookahead'} // -1
226 5 0 $hafas_instance->{$service}{'time_zone'} // "Europe/Berlin"
373 0 2 $self->{'exclusive_mots'} // []
385 0 2 $self->{'excluded_mots'} // []
506 5 0 $self->{'raw_json'}{'svcResL'} // []
573 0 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'locL'} // []
576 0 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'match'}{'locL'} // []
595 3 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'common'}{'locL'} // []
602 0 0 $journey->{'polyG'}{'polyXL'} // []
609 0 0 $poly->{'ppLocRefL'} // []
642 1 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'common'}{'locL'} // []
644 1 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'jnyL'} // []
673 1 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'common'}{'locL'} // []
674 1 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'jnyL'} // []

or 3 conditions

line l !l&&r !l&&!r condition
49 1 3 1 $conf{'station'} or $conf{'journey'}
3 1 0 $conf{'station'} or $conf{'journey'} or $conf{'journeyMatch'}
1 0 0 $conf{'station'} or $conf{'journey'} or $conf{'journeyMatch'} or $conf{'geoSearch'}
0 0 0 $conf{'station'} or $conf{'journey'} or $conf{'journeyMatch'} or $conf{'geoSearch'} or $conf{'locationSearch'}
124 0 1 0 $conf{'datetime'} // $now
180 0 1 0 $conf{'datetime'} // $now
181 0 1 0 $conf{'datetime'} // $now
226 0 5 0 $self->{'strptime_obj'} //= "DateTime::Format::Strptime"->new("pattern", "%Y%m%dT%H%M%S", "time_zone", $hafas_instance->{$service}{'time_zone'} // "Europe/Berlin")
240 0 5 0 $conf{'url'} // $hafas_instance->{$service}{'mgate'}
282 0 0 1 $conf{'geoSearch'} or $conf{'locationSearch'}
302 0 0 0 $conf{'station'} or $conf{'journey'}
0 0 0 $conf{'station'} or $conf{'journey'} or $conf{'journeyMatch'}
0 0 0 $conf{'station'} or $conf{'journey'} or $conf{'journeyMatch'} or $conf{'geoSearch'}
0 0 0 $conf{'station'} or $conf{'journey'} or $conf{'journeyMatch'} or $conf{'geoSearch'} or $conf{'locationSearch'}
323 0 0 0 $conf{'geoSearch'} or $conf{'locationSearch'}
496 0 0 0 $self->{'raw_json'}{'errTxt'} // 'error code is ' . $self->{'raw_json'}{'err'}
748 0 0 0 $opt{'user_agent'} //= $self->{'ua'}
749 0 0 0 $opt{'promise'} //= $self->{'promise'}