Branch Coverage

blib/lib/Text/KnuthPlass.pm
Criterion Covered Total %
branch 15 40 37.5


line true false branch
233 0 2 unless @breakpoints
236 2 0 if (@lines)
265 24 88 if ($_ != $#elems)
300 5 83 if ($final) { }
330 0 0 if ($final) { }
370 0 3 if (not $self->{'linelengths'} or ref $self->{'linelengths'} ne 'ARRAY')
376 99 102 if ($node->isa('Text::KnuthPlass::Box')) { }
81 21 elsif ($node->isa('Text::KnuthPlass::Glue')) { }
21 0 elsif ($node->is_penalty and $node->penalty != $self->infinity) { }
379 81 0 if ($_ > 0 and $$nodes[$_ - 1]->isa('Text::KnuthPlass::Box'))
521 0 0 $currentLine <= @{$self->linelengths;} ? :
523 0 0 if $nodes->[$end]->is_penalty and 0
524 0 0 if $nodes->[$end]->is_penalty
526 0 0 if ($width < $linelength) { }
0 0 elsif ($width > $linelength) { }
529 0 0 if ($stretch > 0) { }
535 0 0 if ($shrink > 0) { }
546 0 0 if ($nodes->[$_]->isa('Text::KnuthPlass::Glue')) { }
0 0 elsif ($nodes->[$_]->isa('Text::KnuthPlass::Box') or $nodes->[$_]->is_penalty and $nodes->[$_]->penalty == -$self->infinity and $_ > $index) { }
572 8 6 if ($nodes->[$_]->isa('Text::KnuthPlass::Box') or $nodes->[$_]->is_penalty and $nodes->[$_]->penalty == -$self->infinity)