Condition Coverage

blib/lib/Parse/DNS/Zone.pm
Criterion Covered Total %
condition 30 46 65.2


and 3 conditions

line !l l&&!r l&&r condition
145 1 0 6 not defined $self->{'zonestr'} and defined $self->{'zonefile'}
164 0 7 0 $self->{'require_soa'} and not exists $self->{'zone'}{$self->{'origin'}}{'soa'}
207 19 6 26 $name ne $self->{'origin'} and not $name =~ /\.$/
229 0 5 2 $name ne $self->{'origin'} and not $name =~ /\.$/
250 0 0 1 $name ne $self->{'origin'} and not $name =~ /\.$/
282 3 0 1 $name ne $self->{'origin'} and not $name =~ /\.$/
460 7 0 5 not defined $zonestr and exists $opts{'zonefile'}
577 142 0 36 defined $ttlclass and $ttlclass ne ""
594 0 0 178 $name and $type
0 0 178 $name and $type and $rdata
609 145 26 7 $self->{'append_origin'} and $type =~ /^(?:cname|afsdb|mx|ns)$/i
171 0 7 $self->{'append_origin'} and $type =~ /^(?:cname|afsdb|mx|ns)$/i and $rdata ne $origin
26 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
211 1 2 $self->{'zone'}{lc $name}{lc $rr}{lc $field} // []
642 182 2 $origin //= "."

or 3 conditions

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