Branch Coverage

blib/lib/Net/Stripe/Resource.pm
Criterion Covered Total %
branch 41 82 50.0


line true false branch
71 0 2 if @_ != 2
2 0 $#_ >= 0 ? :
0 2 unless Type::Tiny::XS::Str($field_name)
2 0 if ($#_ >= 0)
2 0 $#_ >= 1 ? :
0 2 unless XXX
2 0 if ($#_ >= 1)
76 1 1 if (ref $value eq 'HASH') { }
88 0 1 if @_ != 2
1 0 $#_ >= 0 ? :
0 1 unless Type::Tiny::XS::Str($field_name)
1 0 if ($#_ >= 0)
1 0 $#_ >= 1 ? :
0 1 unless XXX
1 0 if ($#_ >= 1)
93 26 0 @_ ? :
0 26 if @_ != 1
26 0 $#_ >= 0 ? :
94 0 26 unless $self->can($for)
96 24 2 unless defined $thingy
97 0 2 if $for eq 'card' and ref $thingy eq 'Net::Stripe::Token'
98 0 2 if $for eq 'source' and ref $thingy eq 'Net::Stripe::Token'
99 0 2 if ref($thingy) =~ /^Net::Stripe::/
100 0 2 if ref $thingy eq 'HASH'
101 0 2 if ref $thingy eq 'ARRAY'
104 0 0 if $self->isa('Net::Stripe::PaymentMethod') and $for eq 'card' and $token_id_type->check($thingy)
110 2 0 @_ ? :
2 0 $#_ >= 0 ? :
114 2 0 @_ ? :
0 2 if @_ != 1
2 0 $#_ >= 0 ? :
0 2 unless Type::Tiny::XS::Str($attr)
2 0 if ($#_ >= 0)
115 0 2 unless $self->boolean_attributes
119 2 0 @_ ? :
0 2 if @_ != 1
2 0 $#_ >= 0 ? :
0 2 unless Type::Tiny::XS::Str($attr)
2 0 if ($#_ >= 0)
121 2 0 unless $self->is_a_boolean($attr)
122 0 0 defined $value && $value ? :