Branch Coverage

blib/lib/Address/PostCode/UK.pm
Criterion Covered Total %
branch 3 20 15.0


line true false branch
65 1 3 unless defined $post_code
66 3 0 unless $post_code =~ /[A-Z]{1,2}[0-9][0-9A-Z]?\s?[0-9][A-Z]{2}/gi
75 0 0 if exists $contents->{'geo'}
77 0 0 if exists $contents->{'administrative'}{'ward'}
79 0 0 if exists $contents->{'administrative'}{'council'}
81 0 0 if exists $contents->{'administrative'}{'constituency'}
108 0 0 unless defined $post_code
109 0 0 unless defined $distance
111 0 0 unless $post_code =~ /[A-Z]{1,2}[0-9][0-9A-Z]?\s?[0-9][A-Z]{2}/gi
112 0 0 unless $distance =~ /^[\d+]$/