Condition Coverage

lib/OODoc/Template.pm
Criterion Covered Total %
condition 24 41 58.5


and 3 conditions

line !l l&&!r l&&r condition
91 0 0 60 ref $value ne "ARRAY" and ref $value ne "HASH"
294 4 0 1 not defined $output and $attrs->{'alt'}
443 12 0 23 @v == 1 and not $v[0] =~ /^\$/

or 2 conditions

line l !l condition
38 0 11 $args->{'template'} ||= sub { $s->includeTemplate(@_); }
39 0 11 $args->{'macro'} ||= sub { $s->defineMacro(@_); }
41 1 10 $args->{'search'} ||= "."
42 2 9 $args->{'markers'} ||= \@default_markers
43 0 11 $args->{'define'} ||= sub { shift(); 1, @_; }
309 0 0 $self->valueFor('source') || '??'
337 0 0 $self->valueFor('source') || '??'

or 3 conditions

line l !l&&r !l&&!r condition
87 34 5 74 defined $then or defined $else
99 11 5 23 !defined($value) || ref $value eq 'ARRAY' && @$value == 0
147 1 5 0 $values->{'source'} ||= $filename
165 5 1 0 defined $tree or defined wantarray
288 0 0 7 defined $then or defined $else
428 0 57 0 $1 || $2 || $3