Condition Coverage

blib/lib/Geo/Postcode.pm
Criterion Covered Total %
condition 33 63 52.3


and 3 conditions

line !l l&&!r l&&r condition
127 0 20 43 $$self{'postcode'} and @{$$self{'postcode'};}
166 6 0 1 defined $class and $class ne $$self{'location_class'}
308 2 0 10 $a and defined $d
2 0 10 $a and defined $d and defined $s
0 0 10 $a and defined $d and defined $s and $u
313 4 4 0 length $a == 1 and $d =~ /[^\dABCDEFGHJKSTUW]$/
314 4 3 1 length $a == 2 and $d =~ /[^\dABEHMNPRVWXY]$/
342 2 0 0 length $a == 1 and not $d =~ /\d[\dABCDEFGHJKSTUW]?/
343 0 2 0 length $a == 2 and not $d =~ /\d[\dABEHMNPRVWXY]?/
409 0 0 7 defined $a and defined $d
423 0 0 8 defined $a and defined $d
0 0 8 defined $a and defined $d and defined $s
446 0 0 7 defined $a and defined $d
0 0 7 defined $a and defined $d and defined $s
474 0 15 0 $pc and grep {$pc eq $_;} $self->special_cases

or 3 conditions

line l !l&&r !l&&!r condition
94 1 19 0 ref $class || $class
170 2 4 0 $$self{'location_class'} ||= $self->default_location_class
254 2 1 1 shift() || $$self{'distance_units'}
340 2 0 0 defined $d or defined $s
2 0 0 defined $d or defined $s or $u
344 1 0 1 defined $s or $u