Branch Coverage

blib/lib/TeX/Hyphen.pm
Criterion Covered Total %
branch 50 68 73.5


line true false branch
120 3 5 if (scalar(@_) % 2) { }
128 5 3 if (not defined $file) { }
129 2 3 unless (defined $DATA_LOADED)
134 0 3 unless (open FILE, $file)
152 7 1 unless (defined $opts{'style'})
155 8 0 if (defined $opts{'style'})
156 1 7 if ($opts{'style'} eq 'utf8')
160 8 0 if (not $@) { }
170 0 8 if exists $opts{'leftmin'}
171 1 7 if exists $opts{'rightmin'}
179 22254 93 if ($in_patterns) { }
75 18 elsif ($in_hyphenation) { }
8 10 elsif (/\\patterns{/) { }
5 5 elsif (/\\hyphenation{/) { }
191 3 5 if defined $file
197 0 0 defined $file ? :
0 8 if $TeX::Hyphen::DEBUG
222 0 1390 if $TeX::Hyphen::DEBUG
225 3 1387 if (defined(my $res = $$exact{$word}))
226 0 3 if $TeX::Hyphen::DEBUG
251 2430 17827 if (defined($value = $$hyphen{$substr}))
253 0 2430 if $TeX::Hyphen::DEBUG > 2
255 2495 4557 if $1 > $result[$j]
259 236 20021 if ($pos == 0 and defined($value = $$beginhyphen{$substr}))
262 0 236 if $TeX::Hyphen::DEBUG > 2
264 236 579 if $1 > $result[$j]
268 222 20035 if ($restlength == $length and defined($value = $$endhyphen{$substr}))
271 0 222 if $TeX::Hyphen::DEBUG > 2
273 177 300 if $1 > $result[$j]
281 0 1387 if (defined($value = $$bothhyphen{$word}))
283 0 0 if $TeX::Hyphen::DEBUG > 2
285 0 0 if $1 > $result[$j]
295 0 1387 if $TeX::Hyphen::DEBUG
307 535 6745 if int($1) % 2