Branch Coverage

blib/lib/Geo/UK/Postcode/CodePointOpen.pm
Criterion Covered Total %
branch 26 36 72.2


line true false branch
29 0 3 unless my $short = $self->csv->getline($fh)
31 0 3 unless my $long = $self->csv->getline($fh)
41 0 3 unless my $csv = 'Text::CSV'->new({'binary', 1})
66 2 0 /\s+([A-Z]{1,2})\t(\d+)/ ? :
84 5 0 if /^([A-Z]+)/i
86 3 4 $areas ? :
96 0 4 if ($args{'short_column_names'}) { }
106 3 1 unless $args{'outcodes'}
109 1 3 @outcodes ? :
110 1 3 if $match
121 11 63 unless ($fh2 and not eof $fh2)
122 4 7 unless my $file = shift @data_files
133 0 0 if ($args{'include_lat_long'} and $pc{'Eastings'} and $pc{'Northings'})
142 30 40 if ($args{'split_postcode'} or $match)
149 0 30 if ($@ or not $unit) { }
157 0 30 if $match and not +($area . $district) =~ /$match/
159 20 10 if ($args{'split_postcode'})
189 5 15 if ++$i > $batch_size