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
141 1 0 4 not defined $$self{'zonestr'} and defined $$self{'zonefile'}
160 0 5 0 $$self{'require_soa'} and not exists $$self{'zone'}{$$self{'origin'}}{'soa'}
203 16 2 13 $name ne $$self{'origin'} and not $name =~ /\.$/
225 0 5 2 $name ne $$self{'origin'} and not $name =~ /\.$/
246 0 0 1 $name ne $$self{'origin'} and not $name =~ /\.$/
278 3 0 1 $name ne $$self{'origin'} and not $name =~ /\.$/
422 5 0 4 not defined $zonestr and exists $opts{'zonefile'}
527 0 103 0 $name and $type
0 103 0 $name and $type and $rdata
542 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
559 107 2 $origin //= '.'

or 3 conditions

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