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
67 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
71 0 0 0 defined $customer and not $card_id_type->check($card)
95 0 0 0 defined $customer and not $card_id_type->check($source)
133 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
137 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
152 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
170 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
213 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
250 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
276 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
316 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
343 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
357 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
370 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
385 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
406 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
441 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
454 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
458 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
465 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
481 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
492 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
512 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
534 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
538 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
567 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
569 0 0 0 defined $type and $type eq 'card'
0 0 0 defined $type and $type eq 'card' and not defined $token
597 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
611 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
637 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
647 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
658 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
671 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
690 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)
725 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
750 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
767 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
777 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
794 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
808 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
817 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
824 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
847 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)
871 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
891 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)
922 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
940 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
956 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
970 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
986 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
1009 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
1023 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
1032 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
1045 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
1062 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
1088 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
1103 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
1107 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
1115 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
1150 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
1177 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
1195 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
1199 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
1210 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 defined $tmp and not ref $tmp
1291 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
1295 0 0 0 $self->api_version and not $suppress_api_version
1362 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'
1382 2 1 2 ref $v eq 'HASH' and defined $v->{'object'}
1433 9 0 0 exists $hash->{$type} and ref $hash->{$type} eq 'ARRAY'
1436 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'}
1457 3 0 0 exists $hash->{$type} and ref $hash->{$type} eq 'ARRAY'
1460 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'}
1478 3 0 0 exists $hash->{$type} and ref $hash->{$type} eq 'ARRAY'
1481 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'}
1508 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'}
1553 0 3 0 exists $hash->{'object'} and $hash->{'object'} eq 'charge' || $hash->{'object'} eq 'customer'
1557 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'
1565 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'
1574 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'})
1589 0 3 0 exists $hash->{'object'} and $hash->{'object'} eq 'customer'
1590 0 0 0 not exists $hash->{'account_balance'} and exists $hash->{'balance'}
1603 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
0 0 0 $#_ == 0 && ref $_[0] eq 'HASH'
1610 0 0 0 defined $limit and $limit eq '0' || $limit > $API_PAGE_SIZE
1623 0 0 0 $GET_MORE and $list->elements > 0
1627 0 0 0 defined $ending_before && !defined($starting_after)
1680 0 0 0 $#_ == 0 and ref $_[0] eq 'HASH'
1693 0 0 0 defined $stripe_version and $stripe_api_version_type->check($stripe_version)
1782 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
1349 0 0 ref $ref || 'NONREF'
1670 0 0 $Net::Stripe::VERSION || 'dev'

or 3 conditions

line l !l&&r !l&&!r condition
67 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
82 0 0 0 defined $customer or $token_id_type->check($card)
107 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)
133 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
137 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
152 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
170 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
213 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
250 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
276 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
316 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
343 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
357 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
370 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
385 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
406 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
441 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
454 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
458 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
465 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
481 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
492 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
512 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
514 0 0 0 defined $card or defined $source
534 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
538 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
567 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
597 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
611 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
637 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
647 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
658 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
671 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
690 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
725 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
750 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
767 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
777 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
794 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
808 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
817 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
824 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
847 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
871 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
891 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
922 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
940 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
956 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
970 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
986 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1009 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1023 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1032 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1045 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1062 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1088 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1103 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1107 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1115 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1150 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1177 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1178 0 0 0 defined $amount or defined $description
0 0 0 defined $amount or defined $description or defined $metadata
1195 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1199 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1210 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1291 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")
1553 0 0 3 $hash->{'object'} eq 'charge' || $hash->{'object'} eq 'customer'
1610 0 0 0 $limit eq '0' || $limit > $API_PAGE_SIZE
1680 0 0 0 $OK{$_} or Carp::croak("Unknown named parameter: $_")