Branch Coverage

blib/lib/HTML/Hyphenate.pm
Criterion Covered Total %
branch 54 54 100.0


line true false branch
131 134 1 if (defined $html) { }
147 2 2 if (defined $label and &blessed($tex) and $tex->isa('TeX::Hyphen'))
166 549 57 if ($self->_hyphenable($node))
168 191 358 if ($TAG eq $type) { }
231 127 elsif ($TEXT eq $type or $RAW eq $type) { }
173 10 132 if ($text_attr->has($k) and length $v >= $self->min_length)
183 150 81 if (length $string >= $self->min_length and $string =~ /$NONSPACE/ux)
207 3 132 if ($EMPTY ne $self->_doctype)
223 181 1 if (defined $self->_hyphenators->{$self->_lang}) { }
243 579 101 if ($_[0]) { }
255 106 235 if (defined $lang)
258 235 106 unless (defined $lang)
260 115 120 if (defined $lang)
264 120 221 unless (defined $lang)
269 104 16 if (not $self->_scope_is_root) { }
278 101 240 unless (defined $lang)
281 105 236 if (not defined $self->_lang or $lang ne $self->_lang)
285 78 27 unless (exists $self->_hyphenators->{$lang})
298 4 74 unless (defined $file)
307 4 580 if ($sim > $max_sim)
312 3 1 if ($max_sim > 0)
317 77 1 if (defined $file)
335 62 56 if $self->default_included
336 56 62 unless $self->default_included
344 4 114 if ($included_level == $excluded_level)
370 144 92 if (not $classnames->is_empty and $node->ancestors->size)
375 64 80 if ($nearest)