Condition Coverage

blib/lib/Travel/Status/DE/HAFAS.pm
Criterion Covered Total %
condition 17 101 16.8


and 3 conditions

line !l l&&!r l&&r condition
211 0 1 0 defined $service and not exists $hafas_instance{$service}
587 1 0 0 $self->{'raw_json'}{'err'} and $self->{'raw_json'}{'err'} ne "OK"
0 1 0 defined $self->{'raw_json'}{'cInfo'}{'code'} and $self->{'raw_json'}{'cInfo'}{'code'} ne "OK"
1 0 0 defined $self->{'raw_json'}{'cInfo'}{'code'} and $self->{'raw_json'}{'cInfo'}{'code'} ne "OK" and $self->{'raw_json'}{'cInfo'}{'code'} ne "VH"
631 0 0 0 $code eq $message->{'code'} and $text eq $message->{'text'}
751 0 0 0 $service and exists $hafas_instance{$service}{'stopfinder'}
773 0 0 0 $service and exists $hafas_instance{$service}{'stopfinder'}
856 0 0 0 defined $service and exists $hafas_instance{$service}

or 2 conditions

line l !l condition
191 0 1 $conf{'lwp_options'} // {"timeout", 10}
246 0 0 $conf{'journey'}{'name'} // 0
277 0 0 $conf{'results'} // 30
298 0 0 $conf{'results'} // 30
313 0 1 $conf{'results'} // 30
314 0 1 $conf{'lookahead'} // -1
477 0 1 $self->{'exclusive_mots'} // []
484 0 1 $self->{'excluded_mots'} // []
599 1 0 $self->{'raw_json'}{'svcResL'} // []
658 0 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'common'}{'locL'} // []
659 0 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'locL'} // []
662 0 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'match'}{'locL'} // []
682 0 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'common'}{'locL'} // []
688 0 0 $journey->{'poly'}{'ppLocRefL'} // []
716 1 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'jnyL'} // []
795 0 0 $self->{'raw_json'}{'svcResL'}[0]{'res'}{'common'}{'locL'} // []

or 3 conditions

line l !l&&r !l&&!r condition
196 1 0 0 $conf{'station'} or $conf{'journey'}
0 0 0 $conf{'station'} or $conf{'journey'} or $conf{'geoSearch'}
0 0 0 $conf{'station'} or $conf{'journey'} or $conf{'geoSearch'} or $conf{'locationSearch'}
302 0 1 0 $conf{'datetime'} // $now
303 0 1 0 $conf{'datetime'} // $now
342 0 1 0 $self->{'strptime_obj'} //= "DateTime::Format::Strptime"->new("pattern", "%Y%m%dT%H%M%S", "time_zone", "Europe/Berlin")
358 0 1 0 $conf{'url'} // $hafas_instance{$service}{'mgate'}
400 0 0 1 $conf{'geoSearch'} or $conf{'locationSearch'}
417 0 0 0 $conf{'station'} or $conf{'journey'}
0 0 0 $conf{'station'} or $conf{'journey'} or $conf{'geoSearch'}
0 0 0 $conf{'station'} or $conf{'journey'} or $conf{'geoSearch'} or $conf{'locationSearch'}
435 0 0 0 $conf{'geoSearch'} or $conf{'locationSearch'}
589 0 0 0 $self->{'raw_json'}{'errTxt'} // "error code is " . $self->{'raw_json'}{'err'}
774 0 0 0 $opt{'user_agent'} //= $self->{'ua'}
775 0 0 0 $opt{'promise'} //= $self->{'promise'}