Branch Coverage

blib/lib/Riak/Client.pm
Criterion Covered Total %
branch 1 130 0.7


line true false branch
135 0 0 unless my $args = $self->_current_request_ae_args->[0]
140 0 0 if ($response_code == 0)
149 0 0 if $response_code != $$args{'expected_code'}
157 0 0 if (my $handle_response = $$args{'handle_response'})
161 0 0 if $more_to_come
169 0 0 if $lock
172 0 0 unless $$args{'cb'}
179 0 0 if $ret
208 0 0 unless defined $socket
211 0 0 unless $self->has_read_timeout or $self->has_write_timeout
217 0 0 if $self->has_read_timeout
219 0 0 if $self->has_write_timeout
223 0 0 if $self->no_delay
231 3 0 if $self->no_auto_connect
242 0 0 if (not $self->ae) { }
244 0 0 if ($cb) { }
252 0 0 ref $_[-1] eq 'CODE' ? :
0 0 if (my $cb = ref $_[-1] eq 'CODE' ? $_[-1] : undef)
284 0 0 if $cb
307 0 0 ref $_[-1] eq 'CODE' ? :
314 0 0 if ($content_type //= 'application/json') eq 'application/json'
324 0 0 ref $_[-1] eq 'CODE' ? :
387 0 0 unless ($cb)
392 0 0 unless $obj->done
403 0 0 if my $obj_done = $obj->done
410 0 0 unless $obj->done
414 0 0 if defined $last_key
455 0 0 unless defined $encoded_message
462 0 0 unless ref $content eq 'ARRAY'
466 0 0 if $$args{'test_exist'}
474 0 0 if $$args{'decode'} and ($content_type // '') eq 'application/json'
493 0 0 $indexes ? :
0 0 $links ? :
520 0 0 if ref $value_to_match
522 0 0 $query_type_is_eq ? :
533 0 0 $query_type_is_eq ? :
555 0 0 unless my $cb = $$args{'cb'}
617 0 0 if $$props{'n_val'} and $$props{'n_val'} < 0
635 0 0 ref $request ? :
637 0 0 if $cb
676 0 0 unless ($cb)
679 0 0 if ($obj->done)
686 0 0 $$args{'decode'} ? :
698 0 0 if $obj->done
710 0 0 if $self->ae
719 0 0 unless my $raw_response_ref = _read_response($socket)
725 0 0 if ($response_code == 0)
735 0 0 if $response_code != $$args{'expected_code'}
744 0 0 if (my $handle_response = $$args{'handle_response'})
750 0 0 if $more_to_come
753 0 0 if ($ret)
754 0 0 if $$args{'cb'}
775 0 0 if ($self->_requests_lock)
783 0 0 if $$args{'lock_requests'}
796 0 0 unless $$args{'cb'}
814 0 0 if $$args{'cb'}
818 0 0 if $res
833 0 0 if defined $bucket and defined $key
837 0 0 if (my $cv = $$args{'cv'}) { }
858 0 0 unless (defined $read)
859 0 0 if $! == 4
864 0 0 unless $read > 0
886 0 0 unless (defined $sent)
887 0 0 if $! == 4
892 0 0 unless $sent > 0