Condition Coverage

lib/Petal.pm
Criterion Covered Total %
condition 30 53 56.6


and 3 conditions

line !l l&&!r l&&r condition
385 0 191 9 defined $@ and $@
186 0 5 defined $TranslationService and $CURRENT_INCLUDES == 1
573 12 0 230 -e $file_path and -r $file_path
621 0 206 4 defined $DISK_CACHE && $DISK_CACHE
632 0 192 4 defined $DISK_CACHE and $DISK_CACHE
645 0 194 8 defined $MEMORY_CACHE && $MEMORY_CACHE
655 0 188 7 defined $MEMORY_CACHE and $MEMORY_CACHE

or 2 conditions

line l !l condition
145 0 0 $ENV{'PETAL_INPUT'} || 'XML'
146 0 0 $ENV{'PETAL_OUTPUT'} || 'XHTML'
225 16 199 $self->language || (return)
302 9 9 $path ||= '.'
462 7 0 ">$debug" || die(qq[Cannot write-open ">$debug" ($!)])
592 207 0 &Encode::resolve_alias($DECODE_CHARSET) || 'utf8'
597 0 0 "<$file_path" || die("Cannot read-open $file_path ($!)")

or 3 conditions

line l !l&&r !l&&!r condition
192 0 215 0 ref $class || $class
240 13 0 305 $self->{'language'} || $self->{'lang'}
606 25 2 180 $OUTPUT =~ /HTML$/i || $INPUT =~ /HTML$/i
624 20 190 0 $self->_macro || $MT_NAME_CUR
680 214 0 0 $Petal::INPUTS->{$INPUT} || confess("unknown \$Petal::INPUT = $INPUT")
681 214 0 0 $Petal::OUTPUTS->{$OUTPUT} || confess("unknown \$Petal::OUTPUT = $OUTPUT")