Branch Coverage

blib/lib/Business/OnlinePayment/Skipjack.pm
Criterion Covered Total %
branch 9 62 14.5


line true false branch
246 0 0 unless ($c{'type'} =~ /(cc|visa|mastercard|american express|discover)/i)
253 0 0 if defined $c{'amount'} and length $c{'amount'}
256 0 0 if (lc $c{'action'} eq 'normal authorization') { }
0 0 elsif ($c{'action'} =~ /^(credit|void|post authorization)$/i) { }
0 0 elsif (lc $c{'action'} eq 'status') { }
264 0 0 unless $c{'order_number'}
266 0 0 unless $c{'orderstring'}
277 0 0 if (lc $c{'action'} eq 'credit') { }
0 0 elsif (lc $c{'action'} eq 'void') { }
0 0 elsif (lc $c{'action'} eq 'post authorization') { }
303 0 0 if $self->test_transaction
307 0 0 if $Business::OnlinePayment::Skipjack::DEBUG
309 0 0 if ($$self{'_action'} eq 'normal authorization') { }
0 0 elsif ($$self{'_action'} =~ /^(credit|void|postauth)$/) { }
0 0 elsif ($$self{'_action'} eq 'status') { }
328 8 4 if ($$self{'_action'} eq 'normal authorization') { }
3 1 elsif ($$self{'_action'} =~ /^(credit|void|postauth)$/) { }
1 0 elsif ($$self{'_action'} eq 'status') { }
353 0 0 if ($self->is_success)
355 0 0 if ($$self{'_action'} eq 'normal authorization') { }
0 0 elsif ($$self{'_action'} =~ /^(credit|void|postauth)$/) { }
0 0 elsif ($$self{'_action'} eq 'status') { }
357 0 0 if (($r = $$self{'_result'}{'szReturnCode'}) < 0)
358 0 0 if ($r = $$self{'_result'}{'szAVSResponseMessage'})
359 0 0 if ($r = $$self{'_result'}{'szAuthorizationDeclinedMessage'})
363 0 0 if (($r = $$self{'_result'}{'Error Code'}) < 0) { }
371 0 0 if (($r = $$self{'_result'}{'Error Code'}) < 0) { }
432 0 3 unless $csv->parse(shift @records)
438 0 3 unless $csv->parse(shift @records)
457 0 1 unless $csv->parse(shift @records)
463 0 1 unless $csv->parse(shift @records)