Branch Coverage

blib/lib/Net/IDN/UTS46.pm
Criterion Covered Total %
branch 98 106 92.4


line true false branch
27 0 7794 if $param{'TransitionalProcessing'}
38 1713 629 if (/\P{ASCII}/)
40 0 1713 if $@
56 65 20142 unless exists $param{'TransitionalProcessing'}
57 20170 37 unless exists $param{'UseSTD3ASCIIRules'}
58 20205 2 unless exists $param{'AllowUnassigned'}
63 2 20205 if ($param{'AllowUnassigned'}) { }
64 0 2 if $label =~ /(\p{Is_DisallowedAssigned})/
66 8163 12042 if $label =~ /(\p{IsDisallowed})/
69 12041 3 if ($param{'UseSTD3ASCIIRules'})
70 1223 10818 if $label =~ /(\p{IsDisallowedSTD3Valid})/
71 34 10784 if $label =~ /(\p{IsDisallowedSTD3Mapped})/
82 3 10784 unless $param{'UseSTD3ASCIIRules'}
85 3415 7372 if $param{'TransitionalProcessing'}
100 558 10229 if $rooted
106 8378 8455 if ($l =~ /^(?:(?i)$Net::IDN::UTS46::IDNA_PREFIX)(\p{ASCII}+)$/o) { }
108 5 8373 if $@
110 8373 0 unless $@
117 3252 6716 if not $is_bidi and $l =~ /[\p{Bc:R}\p{Bc:AL}\p{Bc:AN}]/
121 3249 2552 if $is_bidi
124 2342 1319 if (defined $to_ascii)
131 141 3520 if length $l < 1
132 68 3452 if length $l > 63 and defined $to_ascii
140 5 1568 if length $domain < 1
141 12 1556 if length $domain > 253 and defined $to_ascii
143 182 1374 if $rooted
152 8373 8455 unless $param{'_AssumeNFC'}
154 120 16705 if $l =~ /^..--/
155 732 15973 if $l =~ /^-/
156 602 15371 if $l =~ /-$/
157 0 15371 if $l =~ /\./
158 1932 13439 if $l =~ /^\p{IsMark}/
160 13437 2 unless ($param{'AllowUnassigned'})
161 2064 11373 if $l =~ /(\p{Unassigned})/
164 11372 3 if ($param{'UseSTD3ASCIIRules'})
165 381 10991 if $l =~ /(\p{IsDisallowedSTD3Valid})/
168 2019 8975 if ($param{'TransitionalProcessing'})
169 0 2019 if $l =~ /(\p{IsDeviation})/
172 0 10994 if $l =~ /(\p{IsIgnored})/
173 48 10946 if $l =~ /(\p{IsMapped}|\p{IsDisallowedSTD3Mapped})/
174 978 9968 if $l =~ /(\p{IsDisallowed})/
197 49 3200 unless length $l
199 1009 2191 if ($l =~ /^[$_RE_BidiClass_L]/o)
200 379 630 if $l =~ /[^$_RE_BidiClass_L\p{Bc:EN}\p{Bc:ES}\p{Bc:CS}\p{Bc:ET}\p{Bc:BN}\p{Bc:ON}\p{Bc:NSM}]/o
201 78 552 unless $l =~ /[$_RE_BidiClass_L\p{Bc:EN}][\p{Bc:NSM}\P{Assigned}]*$/o
205 1334 857 if ($l =~ /^[\p{Bc:R}\p{Bc:AL}]/)
206 322 1012 if $l =~ /[^\p{Bc:R}\p{Bc:AL}\p{Bc:AN}\p{Bc:EN}\p{Bc:ES}\p{Bc:CS}\p{Bc:ET}\p{Bc:ON}\p{Bc:BN}\p{Bc:NSM}]/
207 90 922 unless $l =~ /[\p{Bc:R}\p{Bc:AL}\p{Bc:EN}\p{Bc:AN}][\p{Bc:NSM}\P{Assigned}]*$/
208 42 880 if $l =~ /\p{Bc:EN}.*\p{Bc:AN}|\p{Bc:AN}.*\p{Bc:EN}/
231 141 3892 unless defined $l and length $l
235 0 3892 if $l =~ /([^\x{200C}\x{200D}\P{Join_Control}])/
259 198 3694 if $l =~ / $_RE_Ccc_Virama \x{200C} | (?: $_RE_JoiningType_L | $_RE_JoiningType_D) $_RE_JoiningType_T* \x{200C} $_RE_JoiningType_T*(?: $_RE_JoiningType_R | $_RE_JoiningType_D) | (\x{200C}) /ox and defined $1
287 174 3520 if $l =~ / $_RE_Ccc_Virama \x{200D} | (\x{200D}) /ox and defined $1