Branch Coverage

blib/lib/Business/PinPayment.pm
Criterion Covered Total %
branch 4 28 14.2


line true false branch
46 10 0 unless defined $args{'config'}{$key}
50 0 1 if ($$self{'config'}{'card_token'} or $$self{'config'}{'customer_token'}) { }
55 11 0 unless defined $args{'config'}{'card'}{$key}
67 1 0 unless ($api_key)
72 0 0 if ($live) { }
79 0 0 if ($api eq 'refunds' and $$self{'config'}{'charge_token'}) { }
92 0 0 unless $api eq 'refunds'
97 0 0 if ($$self{'response'}->content)
102 0 0 if ($json_response) { }
103 0 0 if ($$json_response{'response'}{'success'}) { }
0 0 elsif ($$json_response{'response'}{'token'}) { }
0 0 elsif (exists $$json_response{'error'}) { }
0 0 elsif (exists $$json_response{'messages'}) { }
117 0 0 if (exists $$json_response{'messages'})