Branch Coverage

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


line true false branch
24 1076 8 unless delete $attributes{'font'}
26 34 518 unless ($attributes{'x'} or $attributes{'align'})
61 1084 1335 unless (scalar @words)
64 33 1051 if not $next_line =~ /^\s+$/ and $next_line =~ /(\s+)$/
65 0 1084 unless scalar @words
66 289 795 if ($indent)
76 38269 1065 if (defined $word)
77 38253 16 unless $word =~ /^(\s+)$/
83 1354 1065 if ($word) { }
348 717 elsif ($self->pad) { }
84 1354 0 if scalar @words
87 346 2 $self->pad_end ? :
89 348 0 if $left
90 346 2 if $self->pad_end
95 172 2247 if ($align eq 'center') { }
86 2161 elsif ($align eq 'right') { }
108 19 1065 if (scalar @words)
112 17 1065 if (not $self->overflow and scalar @paragraphs)