Branch Coverage

blib/lib/ArangoDB2/Document.pm
Criterion Covered Total %
branch 0 22 0.0


line true false branch
31 0 0 unless ref $data eq 'HASH'
38 0 0 unless my $res = $self->arango->http->post($self->api_path($self->_class), $args, $JSON->encode($data))
69 0 0 unless my $res = $self->arango->http->delete($self->api_path($self->_class, $self->collection->name, $self->name), $args)
74 0 0 if (my $data = $self->data)
100 0 0 unless ref $args eq 'HASH'
118 0 0 unless my $res = $self->arango->http->get($self->api_path($self->_class, $self->collection->name, $self->name))
124 0 0 if (my $data = $self->data) { }
183 0 0 unless my $res = $self->arango->http->patch($self->api_path($self->_class, $self->collection->name, $self->name), $args, $JSON->encode($data))
191 0 0 if (my $orig_data = $self->data) { }
219 0 0 unless my $res = $self->arango->http->put($self->api_path($self->_class, $self->collection->name, $self->name), $args, $JSON->encode($data))
227 0 0 if (my $orig_data = $self->data) { }