Branch Coverage

blib/lib/Net/DNS/Resolver/Mock.pm
Criterion Covered Total %
branch 14 14 100.0


line true false branch
67 3 12 if $self->{'_mock_debug'}
69 1 14 if (exists $$die_on{"$name $type"})
78 4 10 if (lc $type eq 'ptr')
79 3 1 if (index(lc $name, '.in-addr.arpa') == -1)
80 2 1 if ($name =~ /^\d+\.\d+\.\d+\.\d+$/)
91 5 26 if (lc $itemname eq lc $name and lc $itemtype eq lc $type) { }
1 50 elsif (lc $itemname eq lc $name and lc $itemtype eq 'cname') { }