Branch Coverage

blib/lib/NoZone/Zone.pm
Criterion Covered Total %
branch 100 148 67.5


line true false branch
305 6 0 $params{'domains'} ? :
306 2 4 $params{'hostmaster'} ? :
307 2 4 $params{'lifetimes'} ? :
308 6 0 $params{'machines'} ? :
309 2 4 $params{'default'} ? :
310 6 0 $params{'mail'} ? :
311 6 0 $params{'dns'} ? :
312 6 0 $params{'names'} ? :
313 6 0 $params{'aliases'} ? :
314 6 0 $params{'txt'} ? :
315 2 4 $params{'wildcard'} ? :
316 2 4 $params{'spf'} ? :
317 6 0 $params{'dkim'} ? :
318 0 6 $params{'inherits'} ? :
370 3 0 if (defined $self->{'hostmaster'})
374 0 0 if (defined $self->{'inherits'})
395 3 3 if (defined $self->{'lifetimes'})
399 3 0 if ($self->{'inherits'})
425 51 51 if ($self->{'inherits'})
450 48 0 exists $machines{$name} ? :
467 3 3 if (defined $self->{'default'})
471 3 0 if (defined $self->{'inherits'})
492 3 3 if ($self->{'inherits'})
517 3 3 if ($self->{'inherits'})
542 3 3 if ($self->{'inherits'})
567 3 3 if ($self->{'inherits'})
592 3 3 if ($self->{'inherits'})
617 3 3 if ($self->{'inherits'})
643 3 3 if (defined $self->{'wildcard'})
647 3 0 if ($self->{'inherits'})
669 20 20 if (defined $self->{'spf'})
673 10 10 if ($self->{'inherits'})
694 20 0 if (defined $self->{'spf'})
698 0 0 if ($self->{'inherits'})
728 3 3 if (int @{$masters;}) { }
784 3 0 if $verbose
824 62 44 if (defined $comment)
840 10 20 unless defined $policy
843 0 20 if ($policy eq 'accept') { }
0 20 elsif ($policy eq 'reject') { }
20 0 elsif ($policy eq 'mark') { }
855 4 16 if ($name eq '@' or $name eq '*') { }
861 0 8 unless defined $addrs
862 8 0 if (exists $addrs->{'ipv4'})
865 8 0 if (exists $addrs->{'ipv6'})
876 10 6 if (grep {$_ eq $machine;} @machines) { }
878 0 10 unless defined $addrs
880 10 0 if (exists $addrs->{'ipv4'})
883 10 0 if (exists $addrs->{'ipv6'})
901 27 3 if $verbose
905 0 30 unless defined $addrs
908 21 9 if ($name ne $machine)
912 30 0 if exists $addrs->{'ipv4'}
913 30 0 if exists $addrs->{'ipv6'}
914 30 0 if (exists $addrs->{'ipv4'} or exists $addrs->{'ipv6'})
927 0 3 if $verbose
931 3 0 if (defined $default)
944 3 0 if $verbose
967 3 0 if $verbose
992 3 0 if $verbose
996 3 0 if (%names)
1012 3 0 if $verbose
1016 3 0 if (%names)
1032 3 0 if $verbose
1036 3 0 if (%aliases)
1052 3 0 if $verbose
1056 3 0 if (%txt)
1072 3 0 if $verbose
1076 2 1 if (%selectors)
1081 2 2 exists $dkim->{'version'} ? :
1082 2 2 exists $dkim->{'keytype'} ? :
1086 2 2 if (defined $service)
1102 3 0 if $verbose
1105 3 0 if (defined $wildcard)