Branch Coverage

blib/lib/Net/DNS/Async.pm
Criterion Covered Total %
branch 22 48 45.8


line true false branch
24 0 1 $#_ == 0 ? :
27 1 0 unless $$self{'QueueSize'}
28 1 0 unless $$self{'Timeout'}
31 1 0 unless $$self{'Retries'}
39 0 100 if (ref $params eq 'HASH') { }
40 0 0 if exists $$params{'Query'}
42 0 0 if exists $$params{'Nameservers'}
49 0 100 unless (ref $callback eq 'CODE')
52 0 100 unless (@query)
57 100 0 unless (@ns)
61 20 270 if ($frozen eq $$data[2])
63 20 0 unless ($$data[1])
85 0 80 if @ns
97 0 0 if ($socket)
111 0 80 unless ($socket)
114 0 80 unless ($socket->fileno)
129 2 80 unless (defined $time)
133 0 3 if $$_[4] < $time
138 0 2 if $time < 0
147 0 80 unless $socket->fileno
150 0 80 unless ($data)
159 0 80 if ($@)
166 0 161 if ($$data[4] + $$self{'Timeout'} < $time)
169 0 0 if ($$self{'Retries'} < ++$$data[3]) { }