Condition Coverage

lib/OODoc/Template.pm
Criterion Covered Total %
condition 23 41 56.1


and 3 conditions

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

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
84 34 5 74 defined $then or defined $else
96 11 0 28 !defined($value) || ref $value eq 'ARRAY' && @$value == 0
144 1 5 0 $$values{'source'} ||= $filename
162 5 1 0 defined $tree or defined wantarray
285 0 0 7 defined $then or defined $else
425 0 0 57 $1 || $2 || $3