Branch Coverage

blib/lib/Geo/Postcode/Location.pm
Criterion Covered Total %
branch 25 42 59.5


line true false branch
83 0 5 unless $postcode and ref $postcode eq $class->postcode_class
112 37 5 if $$self{'retrieved'}
119 5 10 if $row = $sth->fetchrow_hashref
124 0 5 if $self->disconnect_after_use
146 0 5 if @_
147 0 5 if defined $Geo::Postcode::Location::dbh
148 0 5 if $$self{'dbh'}
151 0 5 unless $file and -e $file and -f $file
153 0 5 if $@
167 0 5 if @_
168 0 5 if $Geo::Postcode::Location::datafile
169 0 5 if $ENV{'POSTCODE_DATA'}
187 0 5 if @_
209 0 36 if $m eq 'DESTROY'
210 0 36 if $m eq 'lat'
211 0 36 if $m eq 'long'
214 0 36 unless $cols{$m}
246 0 2 if $$self{'gridref'}
275 0 4 unless $postcode
288 2 2 if $u eq 'miles'
289 1 3 if $u eq 'm'