Branch Coverage

blib/lib/AnyEvent/OWNet.pm
Criterion Covered Total %
branch 52 62 83.8


line true false branch
38 1 22 exists $$req{'version'} ? :
39 22 1 exists $$req{'data'} ? :
41 22 1 exists $$req{'type'} ? :
43 1 22 exists $$req{'sg'} ? :
44 8 15 exists $$req{'size'} ? :
45 1 22 exists $$req{'offset'} ? :
105 8 14 unless $$self{'cmd_cb'}
114 0 39 if @_
115 5 34 unless ($$self{'all_cv'})
125 2 1 if $$self{'all_cv'}
134 2 1 if $$self{'on_error'}
142 8 0 if (@_)
147 2 6 if $$self{'sock'}
152 1 5 unless (my $fh = shift())
167 1 0 if ($_[1])
187 21 0 if (@_)
188 7 14 if UNIVERSAL::isa($_[-1], 'AnyEvent::CondVar')
189 7 14 if ref $_[-1] eq 'CODE'
212 7 14 if $cb
221 0 18 if ($err)
251 4 0 if ($res->is_success)
253 2 12 if ($d =~ m[^.*/[0-9a-f]{2}\.[0-9a-f]{12}/$]i) { }
1 11 elsif ($d =~ m[/(?:main|aux)/$]) { }
269 0 0 unless ref $files
279 0 0 unless defined $value
295 7 39 unless defined $$rbuf
305 14 25 unless $len >= 24
309 4 21 if ($result{'ret'} > $MAX_RETURN)
317 1 20 unless ($len >= $total_len)
323 8 12 if ($$command{'type'} == 4) { }
324 2 6 if ($data eq '') { }