Branch Coverage

blib/lib/Zonemaster/Engine/Test/Consistency.pm
Criterion Covered Total %
branch 58 76 76.3


line true false branch
25 8 4 if ('Zonemaster::Engine'->config->should_run('consistency01'))
28 8 4 if ('Zonemaster::Engine'->config->should_run('consistency02'))
31 8 4 if ('Zonemaster::Engine'->config->should_run('consistency03'))
34 8 4 if ('Zonemaster::Engine'->config->should_run('consistency04'))
37 8 4 if ('Zonemaster::Engine'->config->should_run('consistency05'))
157 33 39 if $nsnames_and_ip{$local_ns->name->string . '/' . $local_ns->address->short}
159 0 39 if (not 'Zonemaster::Engine'->config->ipv6_ok and $local_ns->address->version == $Zonemaster::Engine::Test::Consistency::IP_VERSION_6)
171 0 39 if (not 'Zonemaster::Engine'->config->ipv4_ok and $local_ns->address->version == $Zonemaster::Engine::Test::Consistency::IP_VERSION_4)
185 2 37 unless ($p)
198 0 37 if (not $soa) { }
215 7 1 if (scalar @serial_numbers == 1) { }
1 0 elsif (scalar @serial_numbers) { }
239 1 0 if ($serial_numbers[-1] - $serial_numbers[0] > $Zonemaster::Engine::Test::Consistency::MAX_SERIAL_VARIATION)
265 33 39 if $nsnames_and_ip{$local_ns->name->string . '/' . $local_ns->address->short}
267 0 39 if (not 'Zonemaster::Engine'->config->ipv6_ok and $local_ns->address->version == $Zonemaster::Engine::Test::Consistency::IP_VERSION_6)
279 0 39 if (not 'Zonemaster::Engine'->config->ipv4_ok and $local_ns->address->version == $Zonemaster::Engine::Test::Consistency::IP_VERSION_4)
293 2 37 unless ($p)
306 0 37 if (not $soa) { }
322 7 1 if (scalar keys %rnames == 1) { }
1 0 elsif (scalar keys %rnames) { }
362 33 39 if $nsnames_and_ip{$local_ns->name->string . '/' . $local_ns->address->short}
364 0 39 if (not 'Zonemaster::Engine'->config->ipv6_ok and $local_ns->address->version == $Zonemaster::Engine::Test::Consistency::IP_VERSION_6)
376 0 39 if (not 'Zonemaster::Engine'->config->ipv4_ok and $local_ns->address->version == $Zonemaster::Engine::Test::Consistency::IP_VERSION_4)
390 2 37 unless ($p)
403 0 37 if (not $soa) { }
422 7 1 if (scalar keys %time_parameter_sets == 1) { }
1 0 elsif (scalar keys %time_parameter_sets) { }
470 33 39 if $nsnames_and_ip{$local_ns->name->string . '/' . $local_ns->address->short}
472 0 39 if (not 'Zonemaster::Engine'->config->ipv6_ok and $local_ns->address->version == $Zonemaster::Engine::Test::Consistency::IP_VERSION_6)
484 0 39 if (not 'Zonemaster::Engine'->config->ipv4_ok and $local_ns->address->version == $Zonemaster::Engine::Test::Consistency::IP_VERSION_4)
498 2 37 unless ($p)
511 0 37 if (not scalar @ns) { }
527 7 1 if (scalar keys %ns_sets == 1) { }
1 0 elsif (scalar keys %ns_sets) { }
572 2 6 if (@extra_address_parent)
581 1 7 if (@extra_address_child)
590 6 2 if (@extra_address_parent == 0 and @extra_address_child == 0)
599 0 8 if (scalar @same_address == 0)