| blib/lib/Lingua/Han/CanonicalPinYin.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 9 | 12 | 75.0 |
| line | true | false | branch |
|---|---|---|---|
| 15 | 76 | 4 | unless utf8::is_utf8($pinyin) |
| 17 | 80 | 0 | if $pinyin =~ /^(.*)(\d)$/ |
| 18 | 0 | 80 | if not defined $tone or $tone == 5 |
| 20 | 0 | 80 | if ($tone < 1 or $tone > 5) |
| 26 | 80 | 200 | if ($pinyin =~ /$vowel/) |
| 27 | 4 | 76 | if ($vowel eq 'v') { } |