Branch Coverage

blib/lib/Lingua/ZH/CCDICT.pm
Criterion Covered Total %
branch 42 50 84.0


line true false branch
39 0 1 if $@
64 0 1 $ENV{'CCDICT_VERBOSE'} ? :
67 1 0 unless (defined $file)
77 0 1 unless open my $fh, '<', $file
86 14 298541 unless substr($_, 0, 1) eq 'U'
92 94361 204180 if $Ignore{$type}
96 0 204180 unless $codepoint
99 6896 197284 if $homograph
104 1 197283 unless defined $last_char
108 27493 169791 if ($unicode_char ne $last_char)
117 79290 117994 if (exists $CCDICTToInternal{$type}) { }
68974 49020 elsif (exists $RomanizationToInternal{$type}) { }
27495 21525 elsif ($type eq 'fR/S') { }
21525 0 elsif ($type eq 'fEnglish') { }
133 3 134086 if $syl eq '}'
134 5792 128294 if $syl eq '(also)'
135 1 128293 if $syl eq '(old)'
137 6 128287 if $syl =~ /^p?\d+$/
139 2 128285 if $syl =~ /^\(coll/
144 23 128262 if ($syl eq 'obs')
154 122 128140 unless $romanized
168 41503 0 if defined $_
176 0 197284 if (not $. % $lines_per and $status_fh)
191 10 27484 unless defined $$entry{'radical'}
199 26400 42574 $_[1] eq 'pinyin' ? :