Branch Coverage

blib/lib/POE/Component/IRC/Plugin/QueryDNS.pm
Criterion Covered Total %
branch 3 26 11.5


line true false branch
19 1 0 unless ref $args{'resolver'} and $args{'resolver'}->isa('POE::Component::Client::DNS')
28 0 1 unless ($$self{'resolver'})
37 1 0 unless $$self{'_mydns'}
51 0 0 unless $command and $command =~ /^\Q$cmdstr\E/i
61 0 0 unless $string and $string =~ /^\Q$cmdstr\E\s+/i
62 0 0 $$self{'privmsg'} ? :
68 0 0 unless $cmdstr and $query
70 0 0 unless $type and $type =~ /^(A|CNAME|NS|MX|PTR|TXT|AAAA|SRV|SOA)$/i
71 0 0 if ip_is_ipv4($query)
78 0 0 if $response
87 0 0 if (not $$response{'response'}) { }
93 0 0 if ($ans->type eq 'SOA') { }
100 0 0 if (@answers) { }