Branch Coverage

blib/lib/Lingua/ZH/PinyinConvert/ID.pm
Criterion Covered Total %
branch 36 50 72.0


line true false branch
1162 5 0 unless (defined $opts)
1166 2 11 ref $hy2id{$1} ? :
0 13 $$opts{'remove_tones'} ? :
1176 0 3 unless (defined $opts)
1180 3 3 ref $jy2id{$1} ? :
0 6 !$$opts{'remove_tones'} && $2 ? :
1190 5 1 unless (defined $opts)
1193 2 7 if ($$opts{'list_all'}) { }
1195 1 1 ref $id2hy{$1} ? :
0 2 !$$opts{'remove_tones'} && $2 ? :
1199 1 8 ref $id2hy{$1} ? :
4 4 !$$opts{'remove_tones'} && $2 ? :
1207 1 5 $@ ? :
1212 0 1 unless (defined $opts)
1215 0 2 if ($$opts{'list_all'}) { }
1217 0 0 ref $id2jy{$1} ? :
0 0 $$opts{'remove_tones'} ? :
1221 0 2 ref $id2jy{$1} ? :
2 0 $$opts{'remove_tones'} ? :
1229 0 1 $@ ? :
1277 1 5 unless $n_all
1278 3 2 if $n_hy / $n_all >= 0.9
1279 3 2 if $n_jy / $n_all >= 0.9
1280 2 3 if $n_idmand / $n_all >= 0.9
1281 2 3 if $n_idcant / $n_all >= 0.9