Branch Coverage

blib/lib/HTML/Hyphenate.pm
Criterion Covered Total %
branch 29 34 85.2


line true false branch
153 100 0 if (defined $html) { }
160 100 0 if (defined $self->html)
179 131 433 if ($element->attr($TEXT)) { }
180 103 28 if ($self->_hyphenable($element))
189 6 99 if ($text_attr->has($attr))
208 100 0 $self->output_xml ? :
226 89 17 if (defined $self->_hyphenators->{$self->_lang}) { }
251 0 564 if defined $self->style
253 438 126 unless defined $lang
254 129 435 if (not defined $self->_lang or $lang ne $self->_lang)
257 67 62 unless (exists $self->_hyphenators->{$lang})
269 53 14 if (my $file = $thp->filename)
285 103 24 if $self->default_included
286 24 103 unless $self->default_included
312 40 214 if ($classnames and my $container = $element->look_up($CLASS, $ANYTHING, sub { $classnames->has($_[0]->attr($CLASS)) if $_[0]; } ))
318 80 0 if $_[0]
333 196 4 if $self->_tree