Branch Coverage

blib/lib/Khonsu/Text.pm
Criterion Covered Total %
branch 33 36 91.6


line true false branch
24 1652 8 unless delete $attributes{'font'}
26 34 806 unless ($attributes{'x'} or $attributes{'align'})
61 1660 1335 unless (scalar @words)
64 33 1627 if not $next_line =~ /^\s+$/ and $next_line =~ /(\s+)$/
65 0 1660 unless scalar @words
66 464 1196 if ($indent)
76 40828 1641 if (defined $word)
77 40812 16 unless $word =~ /^(\s+)$/
83 1354 1641 if ($word) { }
558 1083 elsif ($self->pad) { }
84 1354 0 if scalar @words
87 556 2 $self->pad_end ? :
89 558 0 if $left
90 556 2 if $self->pad_end
95 250 2745 if ($align eq 'center') { }
125 2620 elsif ($align eq 'right') { }
108 19 1641 if (scalar @words)
112 17 1641 if (not $self->overflow and scalar @paragraphs)