Condition Coverage

lib/OODoc/Template.pm
Criterion Covered Total %
condition 24 44 54.5


and 3 conditions

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

or 2 conditions

line l !l condition
48 1 10 $args->{'search'} ||= "."
49 2 9 $args->{'markers'} ||= \@default_markers
310 0 0 $self->valueFor('source') || '??'
338 0 0 $self->valueFor('source') || '??'

or 3 conditions

line l !l&&r !l&&!r condition
45 0 11 0 $args->{'template'} ||= sub { $s->includeTemplate(@_); }
46 0 11 0 $args->{'macro'} ||= sub { $s->defineMacro(@_); }
50 0 11 0 $args->{'define'} ||= sub { shift(); 1, @_; }
93 34 5 74 defined $then or defined $else
104 11 5 23 !defined($value) || ref $value eq 'ARRAY' && @$value == 0
150 1 5 0 $values->{'source'} ||= $filename
168 5 1 0 defined $tree or defined wantarray
289 0 0 7 defined $then or defined $else
430 0 57 0 $1 || $2 || $3