Condition Coverage

blib/lib/Text/Format.pm
Criterion Covered Total %
condition 45 111 40.5


and 3 conditions

line !l l&&!r l&&r condition
42 0 0 13 defined $words[0] and $words[0] ne ""
62 0 8 0 !($line =~ /[.?!]['"]?$/) || $abbrev and length($nextword) + length($line) < $width
66 38 0 0 $line =~ /[.?!]['"]?$/ and not $abbrev
77 13 0 0 $this->{'_nobreak'} and defined $line
93 0 48 6 !($line =~ /[.?!]['"]?$/) || $abbrev and length($nextword) + length($line) < $width
97 196 6 6 $line =~ /[.?!]['"]?$/ and not $abbrev
116 13 0 0 $this->{'_hindent'} and @wrap > 0
123 0 0 0 defined $this->{'_hindtext'}[0] and length $this->{'_hindcurr'} < 1
0 0 0 defined $this->{'_hindtext'}[0] and length $this->{'_hindcurr'} < 1 and $caller ne "Text::Format::paragraphs"
181 0 0 2 defined $line and length $line > 0
185 0 1 0 defined $ret[$#ret] and $ret[$#ret] =~ /\n\n$/
336 3 0 0 defined $ref->{'abbrevs'} and ref $ref->{'abbrevs'} eq "HASH"
339 3 0 0 defined $ref->{'text'} and ref $ref->{'text'} eq "ARRAY"
344 3 0 0 defined $ref->{'hangingText'} and ref $ref->{'hangingText'} eq "ARRAY"
349 3 0 0 defined $ref->{'noBreakRegex'} and ref $ref->{'noBreakRegex'} eq "HASH"
402 7 0 0 defined $conf->{'abbrevs'} and ref $conf->{'abbrevs'} eq "HASH"
405 7 0 0 defined $conf->{'text'} and ref $conf->{'text'} eq "ARRAY"
410 7 0 0 defined $conf->{'hangingText'} and ref $conf->{'hangingText'} eq "ARRAY"
415 7 0 0 defined $conf->{'noBreakRegex'} and ref $conf->{'noBreakRegex'} eq "HASH"
630 37 0 32 $this->{'_fill'} and not $this->{'_align'}
631 40 0 29 $this->{'_justify'} and not $this->{'_fill'} || $this->{'_align'}
40 0 29 $this->{'_justify'} and not $this->{'_fill'} || $this->{'_align'} and defined $line
0 1 28 $this->{'_justify'} and not $this->{'_fill'} || $this->{'_align'} and defined $line and $line =~ /\S+\s+\S+/
1 2 26 $this->{'_justify'} and not $this->{'_fill'} || $this->{'_align'} and defined $line and $line =~ /\S+\s+\S+/ and $not_last
658 69 0 0 $this->{'_align'} and not $this->{'_fill'}
69 0 0 $this->{'_align'} and not $this->{'_fill'} and defined $line
698 0 0 0 $last_word =~ /$_/ and $next_line =~ /do { $$this{"_nobreakregex"} }->{$_}/
703 0 0 0 $no_break and @words > 1
711 0 0 0 $words[$i - 1] =~ /$_/ and $words[$i] =~ /do { $$this{"_nobreakregex"} }->{$_}/

or 3 conditions

line l !l&&r !l&&!r condition
62 8 0 0 !($line =~ /[.?!]['"]?$/) || $abbrev
38 0 8 length($nextword) + length($line) < $width - 1 or !($line =~ /[.?!]['"]?$/) || $abbrev and length($nextword) + length($line) < $width
93 54 0 0 !($line =~ /[.?!]['"]?$/) || $abbrev
202 6 48 length($nextword) + length($line) < $width - 1 or !($line =~ /[.?!]['"]?$/) || $abbrev and length($nextword) + length($line) < $width
163 0 0 1 $this->{'_findent'} == $this->{'_bindent'} or $this->{'_hindent'}
631 0 0 29 $this->{'_fill'} || $this->{'_align'}
678 179 0 136 not $this->{'_space'} or exists $abbrev{$word}
0 0 136 not $this->{'_space'} or exists $abbrev{$word} or exists do { $$this{"_abbrs"} }->{$word}