Branch Coverage

blib/lib/Geo/UK/Postcode/Regex/Simple.pm
Criterion Covered Total %
branch 58 60 96.6


line true false branch
28 16 2 delete $tags{'-strict'} ? :
16 18 delete $tags{'-lax'} ? :
16 34 delete $tags{'-valid'} ? :
34 24 2 delete $tags{'-full'} ? :
24 26 delete $tags{'-partial'} ? :
38 24 2 delete $tags{'-anchored'} ? :
24 26 delete $tags{'-unanchored'} ? :
42 24 2 delete $tags{'-captures'} ? :
24 26 delete $tags{'-nocaptures'} ? :
47 24 2 delete $tags{'-case-sensitive'} ? :
24 26 delete $tags{'-case-insensitive'} ? :
58 1 48 unless $MODE =~ /^(?:strict|lax|valid)$/
61 24 24 if $PARTIAL
62 24 24 if $ANCHORED
63 24 24 if $CAPTURES
64 24 24 if $CASE_INSENSITIVE
71 0 3600 unless $ANCHORED
73 1800 1800 $PARTIAL ? :
1200 2400 $MODE eq 'lax' ? :
1200 2400 $MODE eq 'valid' ? :
1800 1800 $CASE_INSENSITIVE ? :
85 0 3600 if $PARTIAL
87 1200 2400 $MODE eq 'lax' ? :
1200 2400 $MODE eq 'valid' ? :
1800 1800 $CASE_INSENSITIVE ? :
99 1 7176 unless $MODE =~ /^(?:strict|lax|valid)$/
103 3576 3600 if $PARTIAL
105 3600 3576 if $ANCHORED
107 3588 3588 if $CASE_INSENSITIVE
109 3852 3324 $pc =~ /$Geo::UK::Postcode::Regex::Simple::REGEXES{$key}/ ? :