Branch Coverage

lib/Apache/Config/Preproc/ifdefine.pm
Criterion Covered Total %
branch 22 34 64.7


line true false branch
20 0 0 if (grep {(split(/\s+/, $_->value, 0))[0] eq $id;} $p->directive('define'))
32 5 7 if ($before)
33 5 0 if ($d == $before)
39 7 0 if ($d->type eq 'directive') { }
0 0 elsif ($d->type eq 'section' and lc $d->name eq 'virtualhost') { }
40 0 7 if ($d->name =~ /^(un)?define$/i and $d->value eq $id)
41 0 0 if ($1) { }
59 0 0 if $self->_changed_in_section($d, $id)
68 5 5 unless ($self->{'D'}{$id})
71 0 5 if $self->_changed_in_section($d, $id, $before)
90 41 283 if ($d->type eq 'section')
91 10 31 if (lc $d->name eq 'ifdefine')
95 2 8 if $negate
96 7 3 if ($res)
102 283 31 if ($d->type eq 'directive')
104 3 280 if ($name eq 'define') { }
1 279 elsif ($name eq 'undefine') { }