Branch Coverage

blib/lib/Geo/ICAO.pm
Criterion Covered Total %
branch 31 38 81.5


line true false branch
114 1 2 unless defined $code
116 1 1 unless defined code2region($code)
125 1 2 unless defined $code
127 1 1 unless defined code2region($code)
140 3 1 defined $codes ? :
160 0 5 unless defined $code
161 2 3 unless exists $code2country{$code} or exists $code2region{$code}
165 0 3 unless open my $fh, '<', $FDATA
169 25098 222 unless $line =~ /^$code/
183 0 5 unless defined $code
184 2 3 unless exists $code2country{$code} or exists $code2region{$code}
188 0 3 unless open my $fh, '<', $FDATA
192 25198 122 unless $line =~ /^$code/
205 0 100 unless open my $fh, '<', $FDATA
209 66484 99 unless lc $airport eq lc $name
222 0 4 unless open my $fh, '<', $FDATA
225 21399 3 unless $line =~ /^$code\|/
229 1 2 wantarray ? :
248 0 3 unless open my $fh, '<', $file