Branch Coverage

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


line true false branch
98 0 0 unless defined $socket
101 0 0 if ($self->read_timeout or $self->write_timeout)
110 0 0 if $self->no_delay
118 3 0 if $self->no_auto_connect
131 0 0 if ($cb) { }
161 0 0 if $cb
184 0 0 ref $_[-1] eq 'CODE' ? :
191 0 0 if ($content_type //= 'application/json') eq 'application/json'
201 0 0 ref $_[-1] eq 'CODE' ? :
265 0 0 unless ($cb)
270 0 0 unless $obj->done
281 0 0 if my $obj_done = $obj->done
288 0 0 unless $obj->done
292 0 0 if defined $last_key
334 0 0 unless defined $encoded_message
341 0 0 unless ref $content eq 'ARRAY'
345 0 0 if $$args{'test_exist'}
353 0 0 if $$args{'decode'} and ($content_type // '') eq 'application/json'
372 0 0 $indexes ? :
0 0 $links ? :
399 0 0 if ref $value_to_match
401 0 0 $query_type_is_eq ? :
412 0 0 $query_type_is_eq ? :
434 0 0 unless my $cb = $$args{'cb'}
495 0 0 if $$props{'n_val'} and $$props{'n_val'} < 0
513 0 0 ref $request ? :
515 0 0 if $cb
554 0 0 unless ($cb)
557 0 0 if ($obj->done)
564 0 0 $$args{'decode'} ? :
576 0 0 if $obj->done
594 0 0 unless my $raw_response_ref = _read_response($socket)
600 0 0 if ($response_code == 0)
610 0 0 if $response_code != $$args{'expected_code'}
619 0 0 if (my $handle_response = $$args{'handle_response'})
625 0 0 if $more_to_come
628 0 0 if ($ret)
629 0 0 if $$args{'cb'}
646 0 0 if defined $bucket and defined $key
650 0 0 if (my $cb = $$args{'cb'}) { }
0 0 elsif (my $cv = $$args{'cv'}) { }
675 0 0 unless (defined $read)
676 0 0 if $! == 4
681 0 0 unless $read > 0
703 0 0 unless (defined $sent)
704 0 0 if $! == 4
709 0 0 unless $sent > 0