Branch Coverage

blib/lib/NoZone/Zone.pm
Criterion Covered Total %
branch 115 170 67.6


line true false branch
325 6 0 $params{'domains'} ? :
326 2 4 $params{'hostmaster'} ? :
327 2 4 $params{'lifetimes'} ? :
328 6 0 $params{'machines'} ? :
329 2 4 $params{'default'} ? :
330 6 0 $params{'mail'} ? :
331 6 0 $params{'dns'} ? :
332 6 0 $params{'names'} ? :
333 6 0 $params{'aliases'} ? :
334 6 0 $params{'txt'} ? :
335 2 4 $params{'wildcard'} ? :
336 2 4 $params{'spf'} ? :
337 6 0 $params{'dkim'} ? :
338 2 4 $params{'dmarc'} ? :
339 0 6 $params{'inherits'} ? :
391 3 0 if (defined $self->{'hostmaster'})
395 0 0 if (defined $self->{'inherits'})
416 3 3 if (defined $self->{'lifetimes'})
420 3 0 if ($self->{'inherits'})
446 51 51 if ($self->{'inherits'})
471 48 0 exists $machines{$name} ? :
488 3 3 if (defined $self->{'default'})
492 3 0 if (defined $self->{'inherits'})
513 3 3 if ($self->{'inherits'})
538 3 3 if ($self->{'inherits'})
563 3 3 if ($self->{'inherits'})
588 3 3 if ($self->{'inherits'})
613 3 3 if ($self->{'inherits'})
638 3 3 if ($self->{'inherits'})
664 3 3 if (defined $self->{'wildcard'})
668 3 0 if ($self->{'inherits'})
690 20 20 if (defined $self->{'spf'})
694 10 10 if ($self->{'inherits'})
715 20 0 if (defined $self->{'spf'})
719 0 0 if ($self->{'inherits'})
741 2 2 if (defined $self->{'dmarc'})
745 1 1 if ($self->{'inherits'})
776 3 3 if (int @{$masters;}) { }
833 3 0 if $verbose
873 62 46 if (defined $comment)
889 10 20 unless defined $policy
892 0 20 if ($policy eq 'accept') { }
0 20 elsif ($policy eq 'reject') { }
20 0 elsif ($policy eq 'mark') { }
904 4 16 if ($name eq '@' or $name eq '*') { }
910 0 8 unless defined $addrs
911 8 0 if (exists $addrs->{'ipv4'})
914 8 0 if (exists $addrs->{'ipv6'})
925 10 6 if (grep {$_ eq $machine;} @machines) { }
927 0 10 unless defined $addrs
929 10 0 if (exists $addrs->{'ipv4'})
932 10 0 if (exists $addrs->{'ipv6'})
950 27 3 if $verbose
954 0 30 unless defined $addrs
957 21 9 if ($name ne $machine)
961 30 0 if exists $addrs->{'ipv4'}
962 30 0 if exists $addrs->{'ipv6'}
963 30 0 if (exists $addrs->{'ipv4'} or exists $addrs->{'ipv6'})
976 0 3 if $verbose
980 3 0 if (defined $default)
993 3 0 if $verbose
1016 3 0 if $verbose
1041 3 0 if $verbose
1045 3 0 if (%names)
1061 3 0 if $verbose
1065 3 0 if (%names)
1081 3 0 if $verbose
1085 3 0 if (%aliases)
1101 3 0 if $verbose
1105 3 0 if (%txt)
1121 3 0 if $verbose
1125 2 1 if (%selectors)
1130 2 2 exists $dkim->{'version'} ? :
1131 2 2 exists $dkim->{'keytype'} ? :
1135 2 2 if (defined $service)
1151 3 0 if $verbose
1155 1 2 unless defined $config
1157 2 0 exists $config->{'version'} ? :
1158 2 0 exists $config->{'policy'} ? :
1165 2 0 if (defined $subpolicy)
1168 2 0 if (defined $percent)
1171 2 0 if (defined $rua)
1174 2 0 if (defined $ruf)
1188 3 0 if $verbose
1191 3 0 if (defined $wildcard)