Condition Coverage

lib/Weather/GHCN/StationTable.pm
Criterion Covered Total %
condition 140 175 80.0


and 3 conditions

line !l l&&!r l&&r condition
407 0 1 3 @keys and not $args{'no_header'}
729 26 1775 17 $kept and $stn->error_count == 0
1775 8 18 not $kept and $stn->error_count > 0
827 0 433 0 $Opt->range and not $opt_range_nrs->contains($year)
1069 1952752 6 366135 $is_stnid_filter and not $_stnid_filter_href->{$id}
1090 1342517 342555 267680 $Opt->country and not $country =~ /\A$opt_country/imsu
1093 1342517 8715 333840 $Opt->state and not $state =~ /\A$opt_state/imsu
1096 123790 55 1227387 $Opt->location and not _match_location($id, $name, $Opt->location)
1104 1818 0 0 $Opt->gsn and not $gsn
1328 14 2 6 defined $_opt_href->{'aliases'} and defined $_opt_href->{'location'}
1587 59 77 5290 defined $max and defined $min
1653 1811 13 0 $Opt->range and not $opt_range_nrs->subset($stn_active_nrs)
1656 1804 20 0 $Opt->gps and $stn->coordinates eq $EMPTY
1659 15 602 1207 $Opt->active and not $stn->active
1666 0 3 545 $Opt->active and $s->is_empty
1669 15 13 41 $Opt->active and not $opt_active_nrs->subset($stn_active_nrs)
1732 33659 1177 12925 $Opt->fmonth and not $opt_fmonth_nrs->contains($month)
1743 11408 540 7830 $Opt->fday and not $opt_fday_nrs->contains($day)
1810 14 0 1 $Opt->anomalies and $insufficient_quality == 0
1973 0 148 2 $Opt->range and $opt_range_nrs && !$opt_range_nrs->contains($yyyy) || $Opt->anomalies && !$opt_baseline_nrs->contains($yyyy)
2006 180 4 44 $Opt->fmonth and not $opt_fmonth_nrs->contains($mm)
2017 5332 6 87 $Opt->fday and not $opt_fday_nrs->contains($day)
2371 1 1 38 $mm > 0 and $mm < 13

or 2 conditions

line l !l condition
327 6 0 $_flag_cnts_href->{$elem}{'KEPT'} // 0
0 6 $_flag_cnts_href->{$elem}{'REJECTED'} // 0
845 1283 0 $sum // 0
1402 8697 1292 $summary{$key}{$elem} //= [undef, undef]
1469 1964 9989 $_aggregate_href->{$yyyymmdd}{$elem} //= [undef, undef]
1541 12 0 $v // 0
1690 18 37 $_flag_cnts_href->{$elem}{'KEPT'} //= 0
1782 11250 306 $gaps{$year}{$month} //= "\0\0\0\0"

or 3 conditions

line l !l&&r !l&&!r condition
312 2 0 1 $args{'list'} // $_return_list
353 2 0 1 $args{'list'} // $_return_list
401 3 0 1 $args{'list'} // $_return_list
450 15 0 4 $args{'list'} // $_return_list
470 16 2 1 $Opt->report eq 'detail' || $Opt->report eq 'daily' || $Opt->report eq 'monthly'
480 15 1 3 $Opt->report eq "detail" or $Opt->report eq "daily"
530 2 0 1 $args{'list'} // $_return_list
605 2 0 0 $args{'list'} // $_return_list
663 1 0 4 $args{'list'} // $_return_list
712 12 0 3 $args{'list'} // $_return_list
729 11 17 1801 not defined $kept or $kept and $stn->error_count == 0
17 36 1765 not defined $kept or $kept and $stn->error_count == 0 or not $kept and $stn->error_count > 0
805 4 0 2 $args{'list'} // $_return_list
833 395 36 2 $Opt->report eq "daily" or $Opt->report eq "monthly"
873 2 0 1 $args{'list'} // $_return_list
878 2 0 36 $_tstats->get_note($k) // $EMPTY
1173 1 0 1 $arg{'list'} // $_return_list
1241 0 0 0 $arg{'list'} // $_return_list
1314 2 20 0 $_ghcn_opt_obj //= "Weather::GHCN::Options"->new
1332 4 0 2 $_opt_href->{'aliases'}{$_opt_href->{'location'}} // $EMPTY
1394 1096 395 1820 $Opt->report eq "monthly" or $Opt->report eq "daily"
1404 3293 0 3426 $elem eq "TMAX" or $elem eq "SNWD"
134 40 3252 $elem eq "PRCP" or $elem eq "SNOW"
1736 380 258 34198 $opt_range_nrs->contains($year) or $need_baseline
1910 2210 0 42 $row[$measure_idx{$elem}] //= $EMPTY
1973 129 2 19 $opt_range_nrs && !$opt_range_nrs->contains($yyyy) || $Opt->anomalies && !$opt_baseline_nrs->contains($yyyy)
2116 8 2 0 $profile ||= $DEFAULT_PROFILE_FILE
2277 2864 434 1 defined $x or defined $y
2288 2844 431 1 defined $x or defined $y
2299 4965 10419 1 defined $x or defined $y