Branch Coverage

lib/Weather/GHCN/CountryCodes.pm
Criterion Covered Total %
branch 18 18 100.0


line true false branch
150 8 14 if (defined $field) { }
151 1 7 unless ($field =~ / \A (?: gec | iso2 | iso3 | isonum | nato | internet | name) \Z /imsux)
156 1 13 if ($search_value =~ / \A \d+ \Z /msux) { }
1 12 elsif ($search_value =~ / \A [.][[:lower:]][[:lower:]] \Z /imsux) { }
7 5 elsif (length $search_value == 2) { }
2 3 elsif (length $search_value == 3) { }
185 1084 4607 if ($search_key eq 'name') { }
189 9 1075 if $v =~ /$search_value/iu
191 15 4592 if $v eq lc $search_value