lib/Petal.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 25 | 53 | 47.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
383 | 0 | 200 | 0 | defined $@ and $@ |
186 | 0 | 5 | defined $TranslationService and $CURRENT_INCLUDES == 1 | |
571 | 12 | 0 | 230 | -e $file_path and -r $file_path |
619 | 0 | 210 | 0 | defined $DISK_CACHE && $DISK_CACHE |
630 | 0 | 196 | 0 | defined $DISK_CACHE and $DISK_CACHE |
643 | 0 | 202 | 0 | defined $MEMORY_CACHE && $MEMORY_CACHE |
653 | 0 | 195 | 0 | defined $MEMORY_CACHE and $MEMORY_CACHE |
line | l | !l | condition |
---|---|---|---|
144 | 0 | 0 | $ENV{'PETAL_INPUT'} || 'XML' |
145 | 0 | 0 | $ENV{'PETAL_OUTPUT'} || 'XHTML' |
224 | 16 | 199 | $self->language || (return) |
301 | 9 | 9 | $path ||= '.' |
460 | 7 | 0 | ">$debug" || die(qq[Cannot write-open ">$debug"]) |
590 | 207 | 0 | &Encode::resolve_alias($DECODE_CHARSET) || 'utf8' |
595 | 0 | 0 | "<$file_path" || die('Cannot read-open $file_path') |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
191 | 0 | 215 | 0 | ref $class || $class |
239 | 13 | 0 | 305 | $self->{'language'} || $self->{'lang'} |
604 | 25 | 2 | 180 | $OUTPUT =~ /HTML$/i || $INPUT =~ /HTML$/i |
622 | 20 | 0 | 190 | $self->_macro || $MT_NAME_CUR |
678 | 214 | 0 | 0 | $Petal::INPUTS->{$INPUT} || confess("unknown \$Petal::INPUT = $INPUT") |
679 | 214 | 0 | 0 | $Petal::OUTPUTS->{$OUTPUT} || confess("unknown \$Petal::OUTPUT = $OUTPUT") |