Branch Coverage

blib/lib/Parse/JapanesePostalCode/Row.pm
Criterion Covered Total %
branch 72 82 87.8


line true false branch
43 1109 1 if defined $opts{$column}
58 66 8 unless $self->build
77 25 49 if ($district and $town_village) { }
86 18 31 if ($city and $ward) { }
9 22 elsif ($self->region =~ /\x{533a}$/) { }
106 1 73 if ($$columns{'town'} eq '以下に掲載がない場合') { }
2 71 elsif ($$columns{'town'} =~ /^(.+)\x{306e}\x{6b21}\x{306b}\x{756a}\x{5730}\x{304c}\x{304f}\x{308b}\x{5834}\x{5408}/) { }
2 69 elsif ($$columns{'town'} =~ s/\x{ff08}\x{305d}\x{306e}\x{4ed6}\x{ff09}$//) { }
2 67 elsif ($$columns{'town'} =~ /^(.+[\x{753a}\x{6751}])\x{4e00}\x{5186}$/) { }
111 2 0 if ($$columns{'city'} eq $name or $$columns{'city'} =~ /\x{90e1}\Q$name\E$/)
119 2 0 if ($$columns{'city'} eq $name)
125 69 5 if $$columns{'town'}
131 5 61 unless $$columns{'town'}
137 5 56 if ($$columns{'town'} =~ s/\x{ff08}([\d\x{301c}\x{3001}]+)\x{4e01}\x{76ee}\x{ff09}$//) { }
5 51 elsif ($$columns{'town'} =~ /^[^\\x{ff08}]+\x{5730}\x{5272}/) { }
32 19 elsif ($$columns{'town'} =~ s/\x{ff08}(.+?)\x{ff09}$//) { }
141 3 5 if (/^(\d+)\x{301c}(\d+)$/) { }
161 2 3 if ($chiwari =~ /\x{301c}/)
163 4 0 if (/\d+\x{5730}\x{5272}$/) { }
174 2 3 if ($chiwari_kana =~ /-/)
176 4 0 if (/\d+\x{ff81}\x{ff9c}\x{ff98}$/) { }
189 6 0 if (/\d+\x{5730}\x{5272}$/) { }
199 6 0 if (/\d+\x{ff81}\x{ff9c}\x{ff98}$/) { }
209 2 3 if ($koaza)
217 2 3 if ($koaza_kana)
256 42 19 if @subtown
257 42 19 if @subtown_kana
264 67 7 unless ($$self{'build_town'})
265 64 3 unless ($$columns{'town'} and $$columns{'town'} =~ /\x{ff08}.+?\x{968e}.*?\x{ff09}$/)
275 1 9 if ($$columns{'town'} =~ s/\x{ff08}\x{6b21}\x{306e}\x{30d3}\x{30eb}\x{3092}\x{9664}\x{304f}\x{ff09}$//) { }
8 1 elsif ($$columns{'town'} =~ /^\Q$build_town\E(.+)\x{ff08}(.+)\x{ff09}$/) { }
280 6 2 if ($floor =~ /(\d+)\x{968e}/)
294 1 73 unless $$self{'katakana_h2z'} or $$self{'alnum_z2h'}
296 350 672 unless defined $$self{'columns'}{$name}
297 660 12 if $$self{'katakana_h2z'}
298 660 12 if $$self{'alnum_z2h'}
300 42 31 if ($self->has_subtown)
302 150 0 if $$self{'katakana_h2z'}
303 150 0 if $$self{'alnum_z2h'}
306 150 0 if $$self{'katakana_h2z'}
307 150 0 if $$self{'alnum_z2h'}