Condition Coverage

blib/lib/Text/FIGlet/Font.pm
Criterion Covered Total %
condition 60 77 77.9


and 3 conditions

line !l l&&!r l&&r condition
19 1 15 1 defined $self->{'-m'} and $self->{'-m'} eq '-0'
64 1 13 3 defined $self->{'-m'} and $self->{'-m'} eq '-2'
103 1635 1 0 $val > 'Text::FIGlet'->PRIVb and $self->{'-U'} == -1
116 1 15 1 defined $self->{'-m'} and $self->{'-m'} == -3
1 4 11 defined $self->{'-m'} and $self->{'-m'} == -1
184 717 416 17359 $wLead and s/^(\s+)//
190 15122 3370 0 $wTrail and /$REtrail/
196 2 84 18406 s/(\Q$end\E+)$/$end/ && UTF8len($1)
201 1772 1519 79 $i < 126 and $self->{'_maxLen'} < $length
230 1 19 1 defined $self->{'-m'} and $self->{'-m'} == -3
256 1 11 9 defined $self->{'-m'} && $self->{'-m'} < 0
293 250 47 3 $i == scalar(@lines) - 1 and $matches == scalar @lines

or 2 conditions

line l !l condition
20 0 6 $ENV{'FIGFONT'} || 'standard'
21 6 0 $ENV{'FIGLIB'} || '/usr/games/lib/figlet/'
220 1 20 $opts{'-w'} ||= 80
246 101 1 $$font[$opts{'-U'} ? UTF8ord($1) : ord $1][0] || 1

or 3 conditions

line l !l&&r !l&&!r condition
20 11 6 0 $self->{'-f'} ||= $ENV{'FIGFONT'} || 'standard'
21 11 6 0 $self->{'-d'} ||= $ENV{'FIGLIB'} || '/usr/games/lib/figlet/'
42 17 0 0 eval { do { 'IO::Uncompress::Unzip'->new($self->{'_file'}) } } || confess("No such file or directory: $self->{'_file'}")
69 17 0 0 $header[5] || cluck('Unexpected end of font file') && (last)
96 1636 0 0 readline $fh || cluck('Unexpected end of font file') && (last)
116 1 4 0 not defined $self->{'-m'} or $self->{'-m'} > -1
175 18492 0 0 readline $fh || cluck('Unexpected end of font file') && (return 0)
223 1 20 0 $opts{'-X'} ||= $self->{'_header'}[6] ? 'R' : 'L'
283 1 12 10 not defined $self->{'-m'} or $self->{'-m'} > -1
307 2 19 0 $opts{'-x'} ||= $opts{'-X'} eq 'R' ? 'r' : 'l'
310 6 12 111 not defined $self->{'-m'} or $self->{'-m'} > 0