Condition Coverage

blib/lib/Travel/Status/DE/HAFAS.pm
Criterion Covered Total %
condition 37 133 27.8


and 3 conditions

line !l l&&!r l&&r condition
44 0 5 0 defined $service and not exists $hafas_instance->{$service}
50 0 5 0 $service and $hafas_instance->{$service}{'ua_string'}
53 0 5 0 $service and my $geoip_service = $hafas_instance->{$service}{'geoip_lock'}
60 0 5 0 $service and not $hafas_instance->{$service}{'tls_verify'}
425 0 0 0 $content and not $content =~ / CGI_NO_SERVER | CGI_READ_FAILED /ux
526 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"
567 142 5 1 $code eq $message->{'code'} and $text eq $message->{'text'}
634 3 0 0 $journey->{'polyG'} and @{$journey->{'polyG'}{'polyXL'} // [];}
757 0 0 0 $service and exists $hafas_instance->{$service}{'stopfinder'}
779 0 0 0 $service and exists $hafas_instance->{$service}{'stopfinder'}
866 0 0 0 defined $service and exists $hafas_instance->{$service}

or 2 conditions

line l !l condition
49 0 5 $conf{'lwp_options'} // {"timeout", 10}
87 5 0 $hafas_instance->{$service}{'time_zone'} // "Europe/Berlin"
119 0 3 $conf{'journey'}{'name'} // 0
171 0 0 $conf{'results'} // 30
192 0 0 $conf{'results'} // 30
207 0 1 $conf{'results'} // 30
208 0 1 $conf{'lookahead'} // -1
242 5 0 $hafas_instance->{$service}{'time_zone'} // "Europe/Berlin"
389 0 2 $self->{'exclusive_mots'} // []
401 0 2 $self->{'excluded_mots'} // []
538 5 0 $self->{'raw_json'}{'svcResL'} // []
605 0 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'locL'} // []
608 0 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'match'}{'locL'} // []
627 3 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'common'}{'locL'} // []
634 0 0 $journey->{'polyG'}{'polyXL'} // []
641 0 0 $poly->{'ppLocRefL'} // []
674 1 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'common'}{'locL'} // []
676 1 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'jnyL'} // []
705 1 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'common'}{'locL'} // []
706 1 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'jnyL'} // []

or 3 conditions

line l !l&&r !l&&!r condition
69 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'}
140 0 1 0 $conf{'datetime'} // $now
196 0 1 0 $conf{'datetime'} // $now
197 0 1 0 $conf{'datetime'} // $now
242 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")
256 0 5 0 $conf{'url'} // $hafas_instance->{$service}{'mgate'}
298 0 0 1 $conf{'geoSearch'} or $conf{'locationSearch'}
318 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'}
339 0 0 0 $conf{'geoSearch'} or $conf{'locationSearch'}
528 0 0 0 $self->{'raw_json'}{'errTxt'} // 'error code is ' . $self->{'raw_json'}{'err'}
780 0 0 0 $opt{'user_agent'} //= $self->{'ua'}
781 0 0 0 $opt{'promise'} //= $self->{'promise'}