Branch Coverage

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


line true false branch
43 1124 1 if defined $opts{$column}
58 67 8 unless $self->build
77 25 50 if ($district and $town_village) { }
86 19 31 if ($city and $ward) { }
9 22 elsif ($self->region =~ /\x{533a}$/) { }
106 1 74 if ($columns->{'town'} eq "\x{4ee5}\x{4e0b}\x{306b}\x{63b2}\x{8f09}\x{304c}\x{306a}\x{3044}\x{5834}\x{5408}") { }
2 72 elsif ($columns->{'town'} =~ /^(.+)\x{306e}\x{6b21}\x{306b}\x{756a}\x{5730}\x{304c}\x{304f}\x{308b}\x{5834}\x{5408}/) { }
2 70 elsif ($columns->{'town'} =~ s/\x{ff08}\x{305d}\x{306e}\x{4ed6}\x{ff09}$//) { }
2 68 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 70 5 if $columns->{'town'}
131 5 62 unless $columns->{'town'}
137 5 57 if ($columns->{'town'} =~ s/\x{ff08}([\d\x{301c}\x{3001}]+)\x{4e01}\x{76ee}\x{ff09}$//) { }
5 52 elsif ($columns->{'town'} =~ /^[^\\x{ff08}]+\x{5730}\x{5272}/) { }
33 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)
242 32 1 if ($columns->{'town_kana'} =~ s/\((.+?)\)$//)
257 43 19 if (@subtown)
267 68 7 unless ($self->{'build_town'})
268 65 3 unless ($columns->{'town'} and $columns->{'town'} =~ /\x{ff08}.+?\x{968e}.*?\x{ff09}$/)
278 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}$/) { }
283 6 2 if ($floor =~ /(\d+)\x{968e}/)
297 1 1 unless $self->{'katakana_h2z'} or $self->{'alnum_z2h'}
299 354 682 unless defined $self->{'columns'}{$name}
300 670 12 if $self->{'katakana_h2z'}
301 670 12 if $self->{'alnum_z2h'}
303 43 31 if ($self->has_subtown)
305 158 0 if $self->{'katakana_h2z'}
306 158 0 if $self->{'alnum_z2h'}
309 150 0 if $self->{'katakana_h2z'}
310 150 0 if $self->{'alnum_z2h'}