Condition Coverage

lib/Weather/GHCN/StationTable.pm
Criterion Covered Total %
condition 141 178 79.2


and 3 conditions

line !l l&&!r l&&r condition
402 0 1 3 @keys and not $args{'no_header'}
726 26 1775 17 $kept and $stn->error_count == 0
1775 8 18 not $kept and $stn->error_count > 0
823 0 433 0 $Opt->range and not $opt_range_nrs->contains($year)
1073 1952752 10 488178 $is_stnid_filter and not $_stnid_filter_href->{$id}
1094 1342517 342555 267680 $Opt->country and not $country =~ /\A$opt_country/imsu
1097 1342517 8715 333840 $Opt->state and not $state =~ /\A$opt_state/imsu
1100 123790 55 1227387 $Opt->location and not _match_location($id, $name, $Opt->location)
1108 1818 0 0 $Opt->gsn and not $gsn
1333 14 3 6 defined $_opt_href->{'aliases'} and defined $_opt_href->{'location'}
1592 59 77 5290 defined $max and defined $min
1658 1815 13 0 $Opt->range and not $opt_range_nrs->subset($stn_active_nrs)
1661 1808 20 0 $Opt->gps and $stn->coordinates eq $EMPTY
1664 19 602 1207 $Opt->active and not $stn->active
1671 0 3 545 $Opt->active and $s->is_empty
1674 19 13 41 $Opt->active and not $opt_active_nrs->subset($stn_active_nrs)
1753 33659 1177 12925 $Opt->fmonth and not $opt_fmonth_nrs->contains($month)
1764 11408 540 7830 $Opt->fday and not $opt_fday_nrs->contains($day)
1831 14 0 1 $Opt->anomalies and $insufficient_quality == 0
1971 0 148 2 $Opt->range and $opt_range_nrs && !$opt_range_nrs->contains($yyyy) || $Opt->anomalies && !$opt_baseline_nrs->contains($yyyy)
2008 180 4 44 $Opt->fmonth and not $opt_fmonth_nrs->contains($mm)
2019 5332 6 87 $Opt->fday and not $opt_fday_nrs->contains($day)
2307 1 1 38 $mm > 0 and $mm < 13

or 2 conditions

line l !l condition
321 6 0 $_flag_cnts_href->{$elem}{'KEPT'} // 0
0 6 $_flag_cnts_href->{$elem}{'REJECTED'} // 0
841 1283 0 $sum // 0
1407 8697 1292 $summary{$key}{$elem} //= [undef, undef]
1474 1964 9989 $_aggregate_href->{$yyyymmdd}{$elem} //= [undef, undef]
1546 12 0 $v // 0
1711 18 37 $_flag_cnts_href->{$elem}{'KEPT'} //= 0
1803 11250 306 $gaps{$year}{$month} //= "\0\0\0\0"

or 3 conditions

line l !l&&r !l&&!r condition
306 2 0 1 $args{'list'} // $_return_list
347 2 0 1 $args{'list'} // $_return_list
396 3 0 1 $args{'list'} // $_return_list
445 15 0 4 $args{'list'} // $_return_list
465 16 2 1 $Opt->report eq 'detail' || $Opt->report eq 'daily' || $Opt->report eq 'monthly'
475 15 1 3 $Opt->report eq "detail" or $Opt->report eq "daily"
525 2 0 1 $args{'list'} // $_return_list
602 2 0 0 $args{'list'} // $_return_list
660 1 0 4 $args{'list'} // $_return_list
709 13 0 3 $args{'list'} // $_return_list
726 15 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
801 4 0 2 $args{'list'} // $_return_list
829 395 36 2 $Opt->report eq "daily" or $Opt->report eq "monthly"
869 2 0 1 $args{'list'} // $_return_list
874 2 0 36 $_tstats->get_note($k) // $EMPTY
1042 1 19 0 $args{'content'} // $self->_fetch_url($GHCN_STN_LIST_URL, "URI::Fetch_stn")
1177 1 0 1 $arg{'list'} // $_return_list
1199 4 0 0 $end //= $start
1246 0 0 0 $arg{'list'} // $_return_list
1319 2 21 0 $_ghcn_opt_obj //= "Weather::GHCN::Options"->new
1337 4 0 2 $_opt_href->{'aliases'}{$_opt_href->{'location'}} // $EMPTY
1399 1096 395 1820 $Opt->report eq "monthly" or $Opt->report eq "daily"
1409 3293 0 3426 $elem eq "TMAX" or $elem eq "SNWD"
134 40 3252 $elem eq "PRCP" or $elem eq "SNOW"
1757 380 258 34198 $opt_range_nrs->contains($year) or $need_baseline
1931 2210 0 42 $row[$measure_idx{$elem}] //= $EMPTY
1971 129 2 19 $opt_range_nrs && !$opt_range_nrs->contains($yyyy) || $Opt->anomalies && !$opt_baseline_nrs->contains($yyyy)
2213 2864 434 1 defined $x or defined $y
2224 2844 431 1 defined $x or defined $y
2235 4965 10419 1 defined $x or defined $y