Branch Coverage

blib/lib/AnyEvent/OWNet.pm
Criterion Covered Total %
branch 53 64 82.8


line true false branch
36 1 22 exists $req->{'version'} ? :
37 22 1 exists $req->{'data'} ? :
40 22 1 exists $req->{'type'} ? :
41 1 22 exists $req->{'sg'} ? :
42 8 15 exists $req->{'size'} ? :
43 1 22 exists $req->{'offset'} ? :
103 22 0 if (@_)
104 0 22 if UNIVERSAL::isa($_[-1], 'AnyEvent::CondVar')
105 7 15 if ref $_[-1] eq 'CODE'
121 7 15 if $cb
125 14 8 if ($self->{'handle'}) { }
139 0 39 if @_
140 5 34 unless ($self->{'all_cv'})
151 2 1 if $self->{'all_cv'}
152 1 2 if $self->{'connect_cv'}
164 2 1 if $self->{'on_error'}
171 8 0 if @_
176 2 6 if $self->{'connect_cv'}
186 1 5 unless (my $fh = shift())
199 1 0 if ($_[1])
245 0 18 if ($err)
265 4 0 if ($res->is_success)
267 2 12 if ($d =~ m[^.*/[0-9a-f]{2}\.[0-9a-f]{12}/$]i) { }
1 11 elsif ($d =~ m[/(?:main|aux)/$]) { }
283 0 0 unless ref $files
293 0 0 unless defined $value
309 7 40 unless defined $$rbuf
319 15 25 unless $len >= 24
323 4 21 if ($result{'ret'} > $MAX_RETURN)
331 1 20 unless ($len >= $total_len)
337 8 12 if ($command->{'type'} == 4) { }
338 2 6 if ($data eq '') { }