Branch Coverage

blib/lib/Unicode/Stringprep.pm
Criterion Covered Total %
branch 52 56 92.8


line true false branch
41 0 10 if $unicode_version != 3.2
47 5 5 $bidi_check ? :
48 1 9 $unassigned_check ? :
49 6 4 defined $normalization_sub ? :
54 0 10 if $] < 5.008
56 31 4 $_ ? :
79 4 4282 if (ref $data eq 'HASH') { }
31 4261 elsif (ref $data eq 'ARRAY') { }
4255 1 elsif (defined $data) { }
86 4 6 unless %map
90 785 779 if ($#_ <= 7) { }
106 3 6 unless @from
118 7 19613 if (ref $data eq 'HASH') { }
51 19562 elsif (ref $data eq 'ARRAY') { }
19561 1 elsif (defined $data) { }
132 15437 4124 if (not @set or $set[$#set][1] + 1 < $$d[0]) { }
4077 50 elsif ($set[$#set][1] < $$d[1]) { }
139 6 71 unless @set
144 8499 6950 $$_[0] >= $$_[1] ? :
155 6 4 if $unicode_normalization eq 'KC'
156 4 0 unless $unicode_normalization
183 1 25 if ((shift()) =~ /($is_Unassigned)/so)
191 7 3 if ($prohibited)
205 9 78 if ($string =~ /$is_RandAL/so)
206 4 5 if ($string =~ /$is_L/so) { }
0 5 elsif (not $string =~ /^(?:$is_RandAL)/so) { }
5 2 elsif (not $string =~ /(?:$is_RandAL)$/so) { }
289 3 92 if (shift()) =~ / \x{09C7}$is_Combining+[\x{09BE}\x{09D7}] | # BENGALI VOWEL SIGN E \x{0B47}$is_Combining+[\x{0B3E}\x{0B56}\x{0B57}] | # ORIYA VOWEL SIGN E \x{0BC6}$is_Combining+[\x{0BBE}\x{0BD7}] | # TAMIL VOWEL SIGN E \x{0BC7}$is_Combining+\x{0BBE} | # TAMIL VOWEL SIGN EE \x{0B92}$is_Combining+\x{0BD7} | # TAMIL LETTER O \x{0CC6}$is_Combining+[\x{0CC2}\x{0CD5}\x{0CD6}] | # KANNADA VOWEL SIGN E [\x{0CBF}\x{0CCA}]$is_Combining\x{0CD5} | # KANNADA VOWEL SIGN I or KANNADA VOWEL SIGN O \x{0D47}$is_Combining+\x{0D3E} | # MALAYALAM VOWEL SIGN EE \x{0D46}$is_Combining+[\x{0D3E}\x{0D57}] | # MALAYALAM VOWEL SIGN E \x{1025}$is_Combining+\x{102E} | # MYANMAR LETTER U \x{0DD9}$is_Combining+[\x{0DCF}\x{0DDF}] | # SINHALA VOWEL SIGN KOMBUVA [\x{1100}-\x{1112}]${is_Combining}[\x{1161}-\x{1175} ] | # HANGUL CHOSEONG KIYEOK..HIEUH ($is_HangulLV|[\x{1100}-\x{1112}][\x{1161}-\x{1175}])($is_Combining)([\x{11A8}-\x{11C2}]) # HANGUL SyllableType=LV /osx