Branch Coverage

blib/lib/Business/OnlinePayment/AuthorizeNet/AIM.pm
Criterion Covered Total %
branch 24 44 54.5


line true false branch
17 0 4 unless $self->server
18 4 0 unless $self->port
19 4 0 unless $self->path
59 0 4 if (length $content{'password'} == 15)
150 0 4 $$self{'_content'}{'transaction_key'} ? :
156 4 0 unless ($$self{'_content'}{'action'} eq 'VOID')
158 0 4 if ($self->transaction_type eq 'ECHECK') { }
4 0 elsif ($self->transaction_type eq 'CC') { }
165 0 0 if (defined $$self{'_content'}{'customer_org'} and length $$self{'_content'}{'customer_org'}) { }
175 1 3 if ($$self{'_content'}{'action'} eq 'PRIOR_AUTH_CAPTURE') { }
0 3 elsif ($$self{'_content'}{'action'} eq 'CREDIT') { }
176 1 0 if ($$self{'_content'}{'order_number'}) { }
215 2 2 $self->test_transaction ? :
218 0 4 if ($post_data{'x_Email_Customer'} and not $post_data{'x_Email_Customer'} =~ /^FALSE$/i) { }
0 4 elsif (exists $post_data{'x_Email_Customer'}) { }
234 4 0 if (index($data_string, $char) == -1)
240 0 4 unless ($encap_character)
255 0 4 defined $$self{'_content'}{'referer'} ? :
279 3 1 if ($col[0] eq '1') { }
282 0 3 if ($col[4] =~ /^(.*)\s+(\d+)$/) { }
291 1 0 if ($self->result_code) { }
293 1 0 if $addl and ref $addl eq 'HASH' and $$addl{'notes'}