Branch Coverage

blib/lib/Geo/Postcodes/NO.pm
Criterion Covered Total %
branch 50 58 86.2


line true false branch
78 3 22 unless valid($postcode)
119 49 33 if $field =~ /Geo::Postcodes/
121 64 18 if $valid_fields{$field}
128 0 2 unless $self
129 0 2 unless $Geo::Postcodes::type_of{$self}
130 0 2 unless $typedesc{$Geo::Postcodes::type_of{$self}}
139 1 38 unless $postcode
140 5 33 unless $postcode =~ /^\d\d\d\d$/
147 4 28 unless legal($postcode)
149 25 3 if $location{$postcode}
162 1 32099 unless $postcode
164 32097 2 if $location{$postcode}
171 1 27491 unless $postcode
173 27485 6 exists $borough_number{$postcode} ? :
179 1 9173 unless $borough_number
181 9171 2 exists $borough{$borough_number} ? :
187 1 9173 unless $postcode
190 2 9171 unless $borough_number
198 1 13724 unless $postcode
201 2 13722 unless $borough_number
209 1 13726 unless $borough_number
210 2 13724 unless $borough{$borough_number}
215 13724 0 $counties[$county_number] ? :
221 1 9160 unless $postcode
222 2 9158 unless $type{$postcode}
230 0 4568 unless $postcode
233 0 4568 unless $type
241 0 4568 unless $type
242 0 4568 unless $typedesc{$type}