Condition Coverage

blib/lib/Net/Stripe.pm
Criterion Covered Total %
condition 12 667 1.8


and 3 conditions

line !l l&&!r l&&r condition
66 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
0 0 0 defined $tmp and not ref $tmp
70 0 0 0 defined $customer and not $card_id_type->check($card)
94 0 0 0 defined $customer and not $card_id_type->check($source)
132 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
136 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
151 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
169 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
212 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
0 0 0 defined $tmp and not ref $tmp
249 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
275 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
0 0 0 defined $tmp and not ref $tmp
315 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
342 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
0 0 0 defined $tmp and not ref $tmp
356 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
369 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
384 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
405 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
0 0 0 defined $tmp and not ref $tmp
0 0 0 defined $tmp and not ref $tmp
440 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
453 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
457 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
464 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
480 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
491 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
511 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
533 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
537 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
566 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
568 0 0 0 defined $type and $type eq 'card'
0 0 0 defined $type and $type eq 'card' and not defined $token
596 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
610 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
636 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
646 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
657 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
670 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
689 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
0 0 0 defined $application_fee_percent and not ref $application_fee_percent
0 0 0 defined $application_fee_percent and not ref $application_fee_percent and &Scalar::Util::looks_like_number($application_fee_percent)
724 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
749 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
766 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
776 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
793 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
807 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
816 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
823 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
846 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $i and not ref $i
0 0 0 defined $i and not ref $i and &Scalar::Util::looks_like_number($i)
870 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
890 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $i and not ref $i
0 0 0 defined $i and not ref $i and &Scalar::Util::looks_like_number($i)
921 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
939 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
955 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
0 0 0 defined $tmp and not ref $tmp
0 0 0 defined $tmp and not ref $tmp
969 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
985 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
1008 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
0 0 0 defined $tmp and not ref $tmp
0 0 0 defined $tmp and not ref $tmp
0 0 0 defined $tmp and not ref $tmp
0 0 0 defined $tmp and not ref $tmp
1022 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
1031 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
1044 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
1061 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
1087 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
1102 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
1106 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
1114 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
1149 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
1176 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
1194 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
1198 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
1209 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
1290 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
1294 0 0 0 $self->api_version and not $suppress_api_version
1361 3 0 0 exists $hash->{'deleted'} and exists $hash->{'object'}
0 0 0 exists $hash->{'deleted'} and exists $hash->{'object'} and $hash->{'object'} ne 'customer'
1381 2 1 2 ref $v eq 'HASH' and defined $v->{'object'}
1432 9 0 0 exists $hash->{$type} and ref $hash->{$type} eq 'ARRAY'
1435 0 0 0 exists $hash->{'object'} and $hash->{'object'} eq 'customer'
0 0 0 exists $hash->{'object'} and $hash->{'object'} eq 'customer' and exists $hash->{'id'}
1456 3 0 0 exists $hash->{$type} and ref $hash->{$type} eq 'ARRAY'
1459 0 0 0 exists $hash->{'object'} and $hash->{'object'} eq 'charge'
0 0 0 exists $hash->{'object'} and $hash->{'object'} eq 'charge' and exists $hash->{'id'}
1477 3 0 0 exists $hash->{$type} and ref $hash->{$type} eq 'ARRAY'
1480 0 0 0 exists $hash->{'object'} and $hash->{'object'} eq 'payment_intent'
0 0 0 exists $hash->{'object'} and $hash->{'object'} eq 'payment_intent' and exists $hash->{'id'}
1507 0 3 0 exists $hash->{'object'} and $hash->{'object'} eq 'invoice'
3 0 0 exists $hash->{'object'} and $hash->{'object'} eq 'invoice' and exists $hash->{'lines'}
0 0 0 exists $hash->{'object'} and $hash->{'object'} eq 'invoice' and exists $hash->{'lines'} and ref $hash->{'lines'} eq 'HASH'
0 0 0 exists $hash->{'object'} and $hash->{'object'} eq 'invoice' and exists $hash->{'lines'} and ref $hash->{'lines'} eq 'HASH' and not exists $hash->{'lines'}{'object'}
1552 0 3 0 exists $hash->{'object'} and $hash->{'object'} eq 'charge' || $hash->{'object'} eq 'customer'
1556 0 0 0 not exists $hash->{'card'} and exists $hash->{'source'}
0 0 0 not exists $hash->{'card'} and exists $hash->{'source'} and ref $hash->{'source'} eq 'HASH'
0 0 0 not exists $hash->{'card'} and exists $hash->{'source'} and ref $hash->{'source'} eq 'HASH' and exists $hash->{'source'}{'object'}
0 0 0 not exists $hash->{'card'} and exists $hash->{'source'} and ref $hash->{'source'} eq 'HASH' and exists $hash->{'source'}{'object'} and $hash->{'source'}{'object'} eq 'card'
1564 0 0 0 not exists $hash->{'cards'} and exists $hash->{'sources'}
0 0 0 not exists $hash->{'cards'} and exists $hash->{'sources'} and ref $hash->{'sources'} eq 'HASH'
0 0 0 not exists $hash->{'cards'} and exists $hash->{'sources'} and ref $hash->{'sources'} eq 'HASH' and exists $hash->{'sources'}{'object'}
0 0 0 not exists $hash->{'cards'} and exists $hash->{'sources'} and ref $hash->{'sources'} eq 'HASH' and exists $hash->{'sources'}{'object'} and $hash->{'sources'}{'object'} eq 'list'
1573 0 0 0 not exists $hash->{'default_card'} and exists $hash->{'default_source'}
0 0 0 not exists $hash->{'default_card'} and exists $hash->{'default_source'} and $card_id_type->check($hash->{'default_source'})
1588 0 3 0 exists $hash->{'object'} and $hash->{'object'} eq 'customer'
1589 0 0 0 not exists $hash->{'account_balance'} and exists $hash->{'balance'}
1602 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 $#_ == 0 && ref $_[0] eq 'HASH'
1609 0 0 0 defined $limit and $limit eq '0' || $limit > $API_PAGE_SIZE
1622 0 0 0 $GET_MORE and $list->elements > 0
1626 0 0 0 defined $ending_before && !defined($starting_after)
1679 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
1692 0 0 0 defined $stripe_version and $stripe_api_version_type->check($stripe_version)
1781 0 0 0 $min_api_version_dt <= $api_version_dt and $api_version_dt <= $max_api_version_dt

or 2 conditions

line l !l condition
1348 0 0 ref $ref || 'NONREF'
1669 0 0 $Net::Stripe::VERSION || 'dev'

or 3 conditions

line l !l&&r !l&&!r condition
66 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
81 0 0 0 defined $customer or $token_id_type->check($card)
106 0 0 0 defined $customer or $token_id_type->check($source)
0 0 0 defined $customer or $token_id_type->check($source) or $source_id_type->check($source)
132 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
136 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
151 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
169 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
212 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
249 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
275 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
315 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
342 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
356 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
369 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
384 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
405 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
440 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
453 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
457 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
464 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
480 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
491 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
511 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
513 0 0 0 defined $card or defined $source
533 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
537 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
566 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
596 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
610 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
636 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
646 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
657 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
670 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
689 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
724 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
749 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
766 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
776 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
793 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
807 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
816 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
823 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
846 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
870 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
890 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
921 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
939 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
955 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
969 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
985 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1008 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1022 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1031 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1044 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1061 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1087 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1102 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1106 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1114 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1149 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1176 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1177 0 0 0 defined $amount or defined $description
0 0 0 defined $amount or defined $description or defined $metadata
1194 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1198 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1209 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1290 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1552 0 0 3 $hash->{'object'} eq 'charge' || $hash->{'object'} eq 'customer'
1609 0 0 0 $limit eq '0' || $limit > $API_PAGE_SIZE
1679 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")