Branch Coverage

blib/lib/Business/OnlinePayment/CardConnect.pm
Criterion Covered Total %
branch 28 62 45.1


line true false branch
80 1 1 if ($val)
82 1 0 unless $tf
95 1 0 if ($val)
97 0 1 unless $tf
110 1 1 if ($val)
112 1 0 unless $tf
125 1 0 if ($val)
127 0 1 unless $tf
224 0 2 unless (defined $testMode)
255 0 0 if defined $content{'amount'} and not $content{'amount'} =~ /\./
273 0 0 $response->{'respstat'} eq 'A' ? :
289 0 0 if defined $content{'amount'}
294 0 0 $response->{'respstat'} eq 'A' ? :
313 0 0 if defined $content{'amount'}
319 0 0 $response->{'respstat'} eq 'A' ? :
333 0 1 if defined $content{'po_number'}
334 0 1 if defined $content{'ship_zip'}
335 0 1 if defined $content{'tax'}
336 0 1 if (defined $content{'products'} and scalar @{$content{'products'};} < 100)
362 0 1 if ($content{'routing_code'} and $content{'account_number'}) { }
1 0 elsif ($content{'card_number'}) { }
402 0 1 if $content{'action'} eq 'Normal Authorization'
407 0 1 $response->{'respstat'} eq 'A' ? :
432 0 1 if $Business::OnlinePayment::CardConnect::DEBUG
435 0 1 if $Business::OnlinePayment::CardConnect::DEBUG
436 0 1 if ($page->{'status'} eq '200') { }
1 0 elsif ($page->{'status'} eq '401') { }
450 0 1 if $e
465 0 1 unless $cc
482 1 1 unless $ptr
486 1 0 $ptr->{'cvv2'} ? :