Condition Coverage

blib/lib/Text/Format.pm
Criterion Covered Total %
condition 44 111 39.6


and 3 conditions

line !l l&&!r l&&r condition
385 0 0 11 defined $words[0] and $words[0] ne ''
397 0 8 0 !($line =~ /[.?!]['"]?$/) || $abbrev and length($_) + length($line) < $width
400 36 0 0 $line =~ /[.?!]['"]?$/ and not $abbrev
410 11 0 0 $this->{'_nobreak'} and defined $line
420 0 48 6 !($line =~ /[.?!]['"]?$/) || $abbrev and length($_) + length($line) < $width
423 196 6 6 $line =~ /[.?!]['"]?$/ and not $abbrev
440 11 0 0 $this->{'_hindent'} and @wrap > 0
446 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'
497 0 0 2 defined $line and length $line > 0
501 0 1 0 defined $ret[$#ret] and $ret[$#ret] =~ /\n\n$/
637 2 0 0 defined $ref->{'abbrevs'} and ref $ref->{'abbrevs'} eq 'HASH'
640 2 0 0 defined $ref->{'text'} and ref $ref->{'text'} eq 'ARRAY'
645 2 0 0 defined $ref->{'hangingText'} and ref $ref->{'hangingText'} eq 'ARRAY'
650 2 0 0 defined $ref->{'noBreakRegex'} and ref $ref->{'noBreakRegex'} eq 'HASH'
699 7 0 0 defined $conf->{'abbrevs'} and ref $conf->{'abbrevs'} eq 'HASH'
702 7 0 0 defined $conf->{'text'} and ref $conf->{'text'} eq 'ARRAY'
707 7 0 0 defined $conf->{'hangingText'} and ref $conf->{'hangingText'} eq 'ARRAY'
712 7 0 0 defined $conf->{'noBreakRegex'} and ref $conf->{'noBreakRegex'} eq 'HASH'
910 35 0 32 $this->{'_fill'} and not $this->{'_align'}
911 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
932 67 0 0 $this->{'_align'} and not $this->{'_fill'}
67 0 0 $this->{'_align'} and not $this->{'_fill'} and defined $line
969 0 0 0 $last_word =~ /$_/ and $next_line =~ /do { $$this{'_nobreakregex'} }->{$_}/
974 0 0 0 $no_break and @words > 1
979 0 0 0 $words[$i - 1] =~ /$_/ and $words[$i] =~ /do { $$this{'_nobreakregex'} }->{$_}/

or 3 conditions

line l !l&&r !l&&!r condition
397 8 0 0 !($line =~ /[.?!]['"]?$/) || $abbrev
36 0 8 length($_) + length($line) < $width - 1 or !($line =~ /[.?!]['"]?$/) || $abbrev and length($_) + length($line) < $width
420 54 0 0 !($line =~ /[.?!]['"]?$/) || $abbrev
202 0 54 length($_) + length($line) < $width - 1 or !($line =~ /[.?!]['"]?$/) || $abbrev and length($_) + length($line) < $width
482 0 0 1 $this->{'_findent'} == $this->{'_bindent'} or $this->{'_hindent'}
911 0 0 29 $this->{'_fill'} || $this->{'_align'}
951 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}