Branch Coverage

blib/lib/Zonemaster/Engine/Config.pm
Criterion Covered Total %
branch 27 36 75.0


line true false branch
53 24 72 if ($new)
60 24 72 if ($new)
84 0 29 unless ($policy)
99 24 0 if ($dir)
122 76 142 if ($m->can('policy') and $m->policy)
133 2 0 if ($new)
135 1 1 if ref $self and $self->isa('Zonemaster::Engine::Config')
144 0 31 unless (-r $filename)
147 0 0 if (-r $name) { }
152 0 0 if (-r $name . '.json')
161 31 0 if ($new)
168 30 1 if ref $self and $self->isa('Zonemaster::Engine::Config')
177 32 20 if (defined $value)
187 14 11044 if (defined $value)
197 14 14454 if (defined $value)
213 2 5 if (defined $sourceaddr)
235 1 408 if (not defined $self->testcases->{$name}) { }
244 164 elsif ($self->testcases->{$name}) { }