Branch Coverage

blib/lib/Riak/Client.pm
Criterion Covered Total %
branch 1 98 1.0


line true false branch
101 0 0 unless defined $socket
104 0 0 unless $self->has_read_timeout or $self->has_write_timeout
110 0 0 if $self->has_read_timeout
112 0 0 if $self->has_write_timeout
116 0 0 if $self->no_delay
124 3 0 if $self->no_auto_connect
137 0 0 if ($cb) { }
167 0 0 if $cb
190 0 0 ref $_[-1] eq 'CODE' ? :
197 0 0 if ($content_type //= 'application/json') eq 'application/json'
207 0 0 ref $_[-1] eq 'CODE' ? :
271 0 0 unless ($cb)
276 0 0 unless $obj->done
287 0 0 if my $obj_done = $obj->done
294 0 0 unless $obj->done
298 0 0 if defined $last_key
340 0 0 unless defined $encoded_message
347 0 0 unless ref $content eq 'ARRAY'
351 0 0 if $$args{'test_exist'}
359 0 0 if $$args{'decode'} and ($content_type // '') eq 'application/json'
378 0 0 $indexes ? :
0 0 $links ? :
405 0 0 if ref $value_to_match
407 0 0 $query_type_is_eq ? :
418 0 0 $query_type_is_eq ? :
440 0 0 unless my $cb = $$args{'cb'}
502 0 0 if $$props{'n_val'} and $$props{'n_val'} < 0
520 0 0 ref $request ? :
522 0 0 if $cb
561 0 0 unless ($cb)
564 0 0 if ($obj->done)
571 0 0 $$args{'decode'} ? :
583 0 0 if $obj->done
601 0 0 unless my $raw_response_ref = _read_response($socket)
607 0 0 if ($response_code == 0)
617 0 0 if $response_code != $$args{'expected_code'}
626 0 0 if (my $handle_response = $$args{'handle_response'})
632 0 0 if $more_to_come
635 0 0 if ($ret)
636 0 0 if $$args{'cb'}
653 0 0 if defined $bucket and defined $key
657 0 0 if (my $cb = $$args{'cb'}) { }
0 0 elsif (my $cv = $$args{'cv'}) { }
682 0 0 unless (defined $read)
683 0 0 if $! == 4
688 0 0 unless $read > 0
710 0 0 unless (defined $sent)
711 0 0 if $! == 4
716 0 0 unless $sent > 0