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 11 defined $words[0] and $words[0] ne ''
60 0 8 0 !($line =~ /[.?!]['"]?$/) || $abbrev and length($_) + length($line) < $width
64 36 0 0 $line =~ /[.?!]['"]?$/ and not $abbrev
75 11 0 0 $this->{'_nobreak'} and defined $line
90 0 48 6 !($line =~ /[.?!]['"]?$/) || $abbrev and length($_) + length($line) < $width
94 196 6 6 $line =~ /[.?!]['"]?$/ and not $abbrev
113 11 0 0 $this->{'_hindent'} and @wrap > 0
120 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'
178 0 0 2 defined $line and length $line > 0
182 0 1 0 defined $ret[$#ret] and $ret[$#ret] =~ /\n\n$/
332 2 0 0 defined $ref->{'abbrevs'} and ref $ref->{'abbrevs'} eq 'HASH'
335 2 0 0 defined $ref->{'text'} and ref $ref->{'text'} eq 'ARRAY'
340 2 0 0 defined $ref->{'hangingText'} and ref $ref->{'hangingText'} eq 'ARRAY'
345 2 0 0 defined $ref->{'noBreakRegex'} and ref $ref->{'noBreakRegex'} eq 'HASH'
398 7 0 0 defined $conf->{'abbrevs'} and ref $conf->{'abbrevs'} eq 'HASH'
401 7 0 0 defined $conf->{'text'} and ref $conf->{'text'} eq 'ARRAY'
406 7 0 0 defined $conf->{'hangingText'} and ref $conf->{'hangingText'} eq 'ARRAY'
411 7 0 0 defined $conf->{'noBreakRegex'} and ref $conf->{'noBreakRegex'} eq 'HASH'
626 35 0 32 $this->{'_fill'} and not $this->{'_align'}
627 38 0 29 $this->{'_justify'} and not $this->{'_fill'} || $this->{'_align'}
38 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
653 67 0 0 $this->{'_align'} and not $this->{'_fill'}
67 0 0 $this->{'_align'} and not $this->{'_fill'} and defined $line
692 0 0 0 $last_word =~ /$_/ and $next_line =~ /do { $$this{'_nobreakregex'} }->{$_}/
697 0 0 0 $no_break and @words > 1
705 0 0 0 $words[$i - 1] =~ /$_/ and $words[$i] =~ /do { $$this{'_nobreakregex'} }->{$_}/

or 3 conditions

line l !l&&r !l&&!r condition
60 8 0 0 !($line =~ /[.?!]['"]?$/) || $abbrev
36 0 8 length($_) + length($line) < $width - 1 or !($line =~ /[.?!]['"]?$/) || $abbrev and length($_) + length($line) < $width
90 54 0 0 !($line =~ /[.?!]['"]?$/) || $abbrev
202 6 48 length($_) + length($line) < $width - 1 or !($line =~ /[.?!]['"]?$/) || $abbrev and length($_) + length($line) < $width
160 0 0 1 $this->{'_findent'} == $this->{'_bindent'} or $this->{'_hindent'}
627 0 0 29 $this->{'_fill'} || $this->{'_align'}
673 175 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}