Condition Coverage

blib/lib/PostScript/File/Metrics.pm
Criterion Covered Total %
condition 18 37 48.6


and 3 conditions

line !l l&&!r l&&r condition
71 0 0 14 $success and $success eq 'OK'
110 0 0 13 do { local $@; eval "require $package; 1" } and $Metrics{$font}{$encoding}
154 0 0 157 defined $_[0] and length $_[0]
219 107 14 3 defined $maxlines and @lines >= $maxlines
221 2 0 1 $warnings || !$quiet and (my $linewidth = $self->width($lines[-1], 1)) > $width

or 2 conditions

line l !l condition
72 0 0 $error ||= 'eval died with false $@'
141 13 0 $size || 1000

or 3 conditions

line l !l&&r !l&&!r condition
102 13 0 0 $encoding ||= $font eq 'Symbol' ? 'sym' : 'std'
121 13 0 0 $Metrics{$font}{$encoding} || croak("Failed to load metrics for $font in encoding $encoding")
127 13 0 0 $$self{'encoding'} = find_encoding($encoding) or croak("Unknown encoding $encoding")
221 0 1 2 $warnings || !$quiet
238 2 12 1 @lines == 1 or length $lines[-1]
278 0 14 0 $_wrap_re_cache{$chars} ||= do { if (length $chars) { $chars =~ s/(.)/sprintf '\\x%02X', ord $1;/seg; qr/ [ \t\r]* (?: [^$chars \t\r\n]+ | [$chars]+ [^$chars \t\r\n]* ) [$chars]* /x; } else { qr/ [ \t\r]* [^ \t\r\n]+ /x; } }