Condition Coverage

blib/lib/Zonemaster/Engine/Zone.pm
Criterion Covered Total %
condition 29 33 87.8


and 3 conditions

line !l l&&!r l&&r condition
77 1 1 375 defined $p and $p->type eq 'answer'
2 2 373 defined $p and $p->type eq 'answer' and $p->rcode eq 'NOERROR'
122 183 4 4 not 'Zonemaster::Engine'->config->ipv4_ok and $ns->address->version == 4
127 183 1 3 not 'Zonemaster::Engine'->config->ipv6_ok and $ns->address->version == 6
168 89 4 4 not 'Zonemaster::Engine'->config->ipv4_ok and $ns->address->version == 4
173 89 1 3 not 'Zonemaster::Engine'->config->ipv6_ok and $ns->address->version == 6
179 0 15 75 $p and $p->aa
196 507 4 4 not 'Zonemaster::Engine'->config->ipv4_ok and $ns->address->version == 4
201 505 3 3 not 'Zonemaster::Engine'->config->ipv6_ok and $ns->address->version == 6
207 0 86 422 $p and scalar $p->get_records_for_name($type, $name) > 0

or 3 conditions

line l !l&&r !l&&!r condition
221 56 0 0 not ref $name or ref $name ne 'Zonemaster::Engine::DNSName'