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 6 17 $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 4 0 not defined $zonestr and exists $opts{'zonefile'}
542 0 135 0 $name and $type
0 135 0 $name and $type and $rdata
557 103 25 7 $self->{'append_origin'} and $type =~ /^(?:cname|afsdb|mx|ns)$/i
128 0 7 $self->{'append_origin'} and $type =~ /^(?:cname|afsdb|mx|ns)$/i and $rdata ne $origin
25 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
590 139 2 $origin //= '.'

or 3 conditions

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