Branch Coverage

blib/lib/Business/OnlinePayment/AuthorizeNet/AIM.pm
Criterion Covered Total %
branch 26 46 56.5


line true false branch
17 0 5 unless $self->server
18 4 1 unless $self->port
19 4 1 unless $self->path
59 0 5 if (length $content{'password'} == 15)
151 0 5 $self->{'_content'}{'transaction_key'} ? :
156 5 0 unless ($self->{'_content'}{'action'} eq 'VOID')
158 0 5 if ($self->transaction_type eq 'ECHECK') { }
5 0 elsif ($self->transaction_type eq 'CC') { }
165 0 0 if (defined $self->{'_content'}{'customer_org'} and length $self->{'_content'}{'customer_org'}) { }
0 0 elsif (defined $self->{'_content'}{'license_num'} and length $self->{'_content'}{'license_num'}) { }
178 1 4 if ($self->{'_content'}{'action'} eq 'PRIOR_AUTH_CAPTURE') { }
0 4 elsif ($self->{'_content'}{'action'} eq 'CREDIT') { }
179 1 0 if ($self->{'_content'}{'order_number'}) { }
218 3 2 $self->test_transaction ? :
221 0 5 if ($post_data{'x_Email_Customer'} and not $post_data{'x_Email_Customer'} =~ /^FALSE$/i) { }
0 5 elsif (exists $post_data{'x_Email_Customer'}) { }
237 5 0 if (index($data_string, $char) == -1)
243 0 5 unless ($encap_character)
260 0 5 defined $self->{'_content'}{'referer'} ? :
282 4 1 if ($col[0] eq '1') { }
285 0 4 if ($col[4] =~ /^(.*)\s+(\d+)$/) { }
294 1 0 if ($self->result_code) { }
297 1 0 if $addl and ref $addl eq 'HASH' and $addl->{'notes'}