Branch Coverage

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


line true false branch
70 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)
75 1 1 if (ref $value eq 'HASH') { }
87 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)
92 26 0 @_ ? :
0 26 if @_ != 1
26 0 $#_ >= 0 ? :
93 0 26 unless $self->can($for)
95 24 2 unless defined $thingy
96 0 2 if $for eq 'card' and ref $thingy eq 'Net::Stripe::Token'
97 0 2 if $for eq 'source' and ref $thingy eq 'Net::Stripe::Token'
98 0 2 if ref($thingy) =~ /^Net::Stripe::/
99 0 2 if ref $thingy eq 'HASH'
100 0 2 if ref $thingy eq 'ARRAY'
103 0 0 if $self->isa('Net::Stripe::PaymentMethod') and $for eq 'card' and $token_id_type->check($thingy)
109 2 0 @_ ? :
2 0 $#_ >= 0 ? :
113 2 0 @_ ? :
0 2 if @_ != 1
2 0 $#_ >= 0 ? :
0 2 unless Type::Tiny::XS::Str($attr)
2 0 if ($#_ >= 0)
114 0 2 unless $self->boolean_attributes
118 2 0 @_ ? :
0 2 if @_ != 1
2 0 $#_ >= 0 ? :
0 2 unless Type::Tiny::XS::Str($attr)
2 0 if ($#_ >= 0)
120 2 0 unless $self->is_a_boolean($attr)
121 0 0 defined $value && $value ? :