Condition Coverage

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


and 2 conditions

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

and 3 conditions

line !l l&&!r l&&r condition
26 0 0 0 scalar @_ == 1 and ref $_[0] eq 'HASH'
31 0 0 0 $self->_is_object($this) and $this->can('as_hash')
90 0 0 0 $self->has_more and scalar @$data and $self->_is_object($data->[-1])
127 0 0 0 scalar @$data and $self->_is_object($data->[0])
197 0 0 0 scalar @$data and $self->_is_object($data->[0])
246 0 0 0 $self->{$field} and $self->_is_object($self->{$field})

or 2 conditions

line l !l condition
72 0 0 $self->{'_pos'} || 0
102 0 0 $self->{'_limit'} || 10
104 0 0 $self->parent->get($self->url, $opts) || (return)
106 0 0 $self->_object_type_to_class($hash->{'object'}) || (return)
107 0 0 $self->parent->_response_to_object($class, $hash) || (return)
139 0 0 $self->{'_limit'} || 10
141 0 0 $self->parent->get($self->url, $opts) || (return)
143 0 0 $self->_object_type_to_class($hash->{'object'}) || (return)
144 0 0 $self->parent->_response_to_object($class, $hash) || (return)
168 0 0 CORE::shift @_ || (return $self->error('Nothing was provided to add to the list of object.'))
183 0 0 CORE::shift @_ || (return $self->error('Nothing was provided to add to the list of object.'))
192 0 0 CORE::shift @_ || (return $self->error('No data was provided to check.'))
230 0 0 $ref->[0]->object || (return $self->error('Somehow, the object property for this object (', $ref->[0], ') is empty.'))
236 0 0 $ref->[0]{'object'} || (return $self->error(q[I was expecting a string in property 'object', but found nothing: ], sub { $self->dumper($ref); } ))
238 0 0 $self->_object_type_to_class($type) || (return $self->error(qq[Could not find corresponding class for ojbect type "$type".]))