Branch Coverage

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


line true false branch
204 0 2 unless @breakpoints
207 2 0 if (@lines)
236 24 61 if ($_ != $#elems)
268 4 57 if ($final) { }
296 0 0 if ($final) { }
334 0 2 if (not $$self{'linelengths'} or ref $$self{'linelengths'} ne 'ARRAY')
340 72 74 if ($node->isa('Text::KnuthPlass::Box')) { }
54 20 elsif ($node->isa('Text::KnuthPlass::Glue')) { }
20 0 elsif ($node->is_penalty and $node->penalty != $self->infinity) { }
343 54 0 if ($_ > 0 and $$nodes[$_ - 1]->isa('Text::KnuthPlass::Box'))
482 0 0 $currentLine < @{$self->linelengths;} ? :
486 0 0 if $$nodes[$end]->is_penalty and 0
487 0 0 if $$nodes[$end]->is_penalty
489 0 0 if ($width < $linelength) { }
0 0 elsif ($width > $linelength) { }
492 0 0 if ($stretch > 0) { }
498 0 0 if ($shrink > 0) { }
509 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) { }
535 8 6 if ($$nodes[$_]->isa('Text::KnuthPlass::Box') or $$nodes[$_]->is_penalty and $$nodes[$_]->penalty == -$self->infinity)