Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
31 0 0 0 exists $init->{'_dbh'} and $init->{'_dbh'}
62 0 0 0 $self->_is_object($addr) and $addr->isa('Net::API::Stripe::Address')
66 0 0 0 exists $addr->{$k} and length $addr->{$k}
75 0 0 0 exists $addr->{$k} and length $addr->{$k}
133 0 0 0 exists $self->{$field} and &Scalar::Util::blessed($self->{$field})
0 0 0 exists $self->{$field} and &Scalar::Util::blessed($self->{$field}) and not $self->_is_array($self->{$field})
179 0 0 0 ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
0 0 0 defined $Nice::Try::WANTARRAY and not ref $Nice::Try::RETVAL[0] && $Nice::Try::RETVAL[0]->isa('Nice::Try::SENTINEL')
237 0 0 0 scalar @_ == 1 and not defined $_[0]
311 0 0 0 not $self->{$field} and want('OBJECT')
327 0 0 0 defined $str and &Scalar::Util::blessed($str)

or 2 conditions

line l !l condition
51 0 0 shift @_ || (return)
186 0 0 shift @_ || (return $self->error('No object type was provided'))
267 0 0 $ref->{'object'} || (return $self->error('No object type could be found in hash: ', sub { $self->_dumper($ref); } ))
287 0 0 &$process($data) || (return $self->error('Unable to create object: ', $self->error))

or 3 conditions

line l !l&&r !l&&!r condition
97 0 0 0 lc $p->{'from'} eq 'cm' or lc $p->{'from'} eq 'centimetre'
198 0 0 0 @_ or not $self->{$field}
302 0 0 0 ref $_[0] eq 'HASH' or ref $_[0] eq 'ARRAY'