Branch Coverage

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


line true false branch
229 0 2 unless @breakpoints
232 2 0 if (@lines)
261 24 88 if ($_ != $#elems)
296 5 83 if ($final) { }
326 0 0 if ($final) { }
366 0 3 if (not $self->{'linelengths'} or ref $self->{'linelengths'} ne 'ARRAY')
372 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) { }
375 81 0 if ($_ > 0 and $$nodes[$_ - 1]->isa('Text::KnuthPlass::Box'))
517 0 0 $currentLine < @{$self->linelengths;} ? :
519 0 0 if $nodes->[$end]->is_penalty and 0
520 0 0 if $nodes->[$end]->is_penalty
522 0 0 if ($width < $linelength) { }
0 0 elsif ($width > $linelength) { }
525 0 0 if ($stretch > 0) { }
531 0 0 if ($shrink > 0) { }
542 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) { }
568 8 6 if ($nodes->[$_]->isa('Text::KnuthPlass::Box') or $nodes->[$_]->is_penalty and $nodes->[$_]->penalty == -$self->infinity)