Branch Coverage

blib/lib/Business/OnlinePayment/AuthorizeNet/ARB.pm
Criterion Covered Total %
branch 41 54 75.9


line true false branch
20 1 1 unless $self->server
21 1 1 unless $self->port
22 1 1 unless $self->path
77 22 80 if (ref $map{$_} eq 'HASH') { }
14 66 elsif (exists $content{$map{$_}}) { }
78 9 13 if keys %{$map{$_};}
83 22 80 if (defined $value) { }
95 1 1 if (defined $expiration and $expiration =~ /^(\d{1,2})\D+(\d{2})$/)
99 1 1 defined $expdate_yyyymm ? :
105 9 15 if (ref $value eq 'HASH') { }
122 1 1 if ($self->{'_content'}{'action'} eq 'ARBCreateSubscriptionRequest') { }
0 1 elsif ($self->{'_content'}{'action'} eq 'ARBUpdateSubscriptionRequest') { }
1 0 elsif ($self->{'_content'}{'action'} eq 'ARBCancelSubscriptionRequest') { }
126 0 1 if ($self->transaction_type eq 'ECHECK') { }
1 0 elsif ($self->transaction_type eq 'CC') { }
154 1 1 $length ? :
1 1 $unit ? :
167 1 1 defined $self->transaction_type && $self->transaction_type eq 'CC' ? :
184 1 1 defined $self->transaction_type && $self->transaction_type eq 'CC' ? :
277 2 0 if ($self->test_transaction)
281 0 2 if $Business::OnlinePayment::AuthorizeNet::ARB::DEBUG
288 0 2 if $Business::OnlinePayment::AuthorizeNet::ARB::DEBUG
290 0 2 if $Business::OnlinePayment::AuthorizeNet::ARB::DEBUG
294 2 0 if ($server_response =~ /200/) { }
296 0 2 if (ref $response->{'messages'}{'message'} eq 'ARRAY') { }
311 2 0 if ($response->{'messages'}{'resultCode'} eq 'Ok') { }
315 0 0 unless ($self->error_message)