Condition Coverage

blib/lib/Parse/DNS/Zone.pm
Criterion Covered Total %
condition 26 41 63.4


and 3 conditions

line !l l&&!r l&&r condition
140 1 0 4 not defined $$self{'zonestr'} and defined $$self{'zonefile'}
159 0 5 0 $$self{'require_soa'} and not exists $$self{'zone'}{$$self{'origin'}}{'soa'}
202 16 2 13 $name ne $$self{'origin'} and not $name =~ /\.$/
224 0 5 2 $name ne $$self{'origin'} and not $name =~ /\.$/
245 0 0 1 $name ne $$self{'origin'} and not $name =~ /\.$/
277 3 0 1 $name ne $$self{'origin'} and not $name =~ /\.$/
421 5 0 4 not defined $zonestr and exists $opts{'zonefile'}
526 0 103 0 $name and $type
0 103 0 $name and $type and $rdata
541 79 17 7 $$self{'append_origin'} and $type =~ /^(?:cname|afsdb|mx|ns)$/i
96 0 7 $$self{'append_origin'} and $type =~ /^(?:cname|afsdb|mx|ns)$/i and $rdata ne $origin
17 4 3 $$self{'append_origin'} and $type =~ /^(?:cname|afsdb|mx|ns)$/i and $rdata ne $origin and not $rdata =~ /\.$/

or 2 conditions

line l !l condition
558 107 2 $origin //= '.'

or 3 conditions

line l !l&&r !l&&!r condition
418 9 0 0 $opts{'origin'} // $$self{'origin'}