Condition Coverage

lib/Net/API/Stripe/List.pm
Criterion Covered Total %
condition 0 56 0.0


and 2 conditions

line l !l condition
98 0 0 $self->has_more and scalar @$data

and 3 conditions

line !l l&&!r l&&r condition
35 0 0 0 scalar @_ == 1 and ref $_[0] eq "HASH"
40 0 0 0 $self->_is_object($this) and $this->can("as_hash")
67 0 0 0 defined $total && CORE::length $total
98 0 0 0 $self->has_more and scalar @$data and $self->_is_object($data->[-1])
133 0 0 0 scalar @$data and $self->_is_object($data->[0])
202 0 0 0 scalar @$data and $self->_is_object($data->[0])
252 0 0 0 $self->{$field} and $self->_is_object($self->{$field})
254 0 0 0 defined $self->{$field} && CORE::length $self->{$field}

or 2 conditions

line l !l condition
81 0 0 $self->{'_pos'} || 0
109 0 0 $self->{'_limit'} || 10
111 0 0 $self->parent->get($self->url, $opts) || (return)
113 0 0 $self->_object_type_to_class($hash->{'object'}) || (return)
114 0 0 $self->parent->_response_to_object($class, $hash) || (return)
144 0 0 $self->{'_limit'} || 10
146 0 0 $self->parent->get($self->url, $opts) || (return)
148 0 0 $self->_object_type_to_class($hash->{'object'}) || (return)
149 0 0 $self->parent->_response_to_object($class, $hash) || (return)
173 0 0 CORE::shift @_ || (return $self->error('Nothing was provided to add to the list of object.'))
188 0 0 CORE::shift @_ || (return $self->error('Nothing was provided to add to the list of object.'))
197 0 0 CORE::shift @_ || (return $self->error('No data was provided to check.'))
236 0 0 $ref->[0]->object || (return $self->error('Somehow, the object property for this object (', $ref->[0], ') is empty.'))
242 0 0 $ref->[0]{'object'} || (return $self->error(q[I was expecting a string in property 'object', but found nothing: ], sub {
244 0 0 $self->_object_type_to_class($type) || (return $self->error(qq[Could not find corresponding class for ojbect type "$type".]))