Branch Coverage

blib/lib/Business/OnlinePayment/SagePay.pm
Criterion Covered Total %
branch 0 104 0.0


line true false branch
127 0 0 if $value
159 0 0 ref $map{$k} ? :
179 0 0 $ENV{'SAGEPAY_F_SIMULATOR'} ? :
0 0 if $self->test_transaction
189 0 0 unless ($page)
196 0 0 if ($ENV{'SAGEPAY_DEBUG'})
208 0 0 $self->is_success($$rf{'Status'} eq 'OK') || $$rf{'Status'} eq 'AUTHENTICATED' ? :
0 0 if (not $self->is_success($$rf{'Status'} eq 'OK') || $$rf{'Status'} eq 'AUTHENTICATED' ? 1 : 0) { }
213 0 0 if ($ENV{'SAGEPAY_DEBUG_ERROR_ONLY'})
240 0 0 if ($ENV{'SAGEPAY_DEBUG'})
247 0 0 $ENV{'SAGEPAY_F_SIMULATOR'} ? :
0 0 if $self->test_transaction
261 0 0 unless ($page)
269 0 0 if ($ENV{'SAGEPAY_DEBUG'})
280 0 0 $$rf{'Status'} eq 'OK' || $$rf{'Status'} eq 'AUTHENTICATED' ? :
0 0 if (not $self->is_success($$rf{'Status'} eq 'OK' || $$rf{'Status'} eq 'AUTHENTICATED' ? 1 : 0)) { }
287 0 0 if ($ENV{'SAGEPAY_DEBUG_ERROR_ONLY'})
317 0 0 if ($ENV{'SAGEPAY_DEBUG'})
332 0 0 unless ($page)
340 0 0 if ($ENV{'SAGEPAY_DEBUG'})
347 0 0 $$rf{'Status'} eq 'OK' ? :
0 0 unless ($self->is_success($$rf{'Status'} eq 'OK' ? 1 : 0))
348 0 0 if ($ENV{'SAGEPAY_DEBUG_ERROR_ONLY'})
370 0 0 if ($ENV{'SAGEPAY_DEBUG'})
385 0 0 unless ($page)
393 0 0 if ($ENV{'SAGEPAY_DEBUG'})
400 0 0 $$rf{'Status'} eq 'OK' ? :
0 0 unless ($self->is_success($$rf{'Status'} eq 'OK' ? 1 : 0))
401 0 0 if ($ENV{'SAGEPAY_DEBUG_ERROR_ONLY'})
410 0 0 unless defined $self->vendor
412 0 0 $ENV{'SAGEPAY_F_SIMULATOR'} ? :
0 0 if $self->test_transaction
436 0 0 if ($ENV{'SAGEPAY_DEBUG'})
451 0 0 unless ($page)
459 0 0 if ($ENV{'SAGEPAY_DEBUG'})
467 0 0 $$rf{'Status'} eq 'OK' ? :
0 0 unless ($self->is_success($$rf{'Status'} eq 'OK' ? 1 : 0))
468 0 0 if ($ENV{'SAGEPAY_DEBUG_ERROR_ONLY'})
486 0 0 if $content{'startdate'}
491 0 0 $content{'customer_name'} || $content{'first_name'} ? :
499 0 0 if $content{'amount'}
511 0 0 if ($ENV{'SAGEPAY_DEBUG'})
525 0 0 unless ($page)
585 0 0 if ($ENV{'SAGEPAY_DEBUG'})
594 0 0 if $post_data{'TxType'} eq 'AUTHORISE'
605 0 0 unless ($page)
618 0 0 if ($self->result_code eq '3DAUTH' and $$rf{'3DSecureStatus'} eq 'OK')
628 0 0 if ($self->result_code eq 'PPREDIRECT')
637 0 0 if ($ENV{'SAGEPAY_DEBUG'})
642 0 0 $$rf{'Status'} eq '3DAUTH' || $$rf{'Status'} eq 'PPREDIRECT' || $$rf{'Status'} eq 'OK' || $$rf{'Status'} eq 'AUTHENTICATED' || $$rf{'Status'} eq 'REGISTERED' ? :
0 0 unless ($self->is_success($$rf{'Status'} eq '3DAUTH' || $$rf{'Status'} eq 'PPREDIRECT' || $$rf{'Status'} eq 'OK' || $$rf{'Status'} eq 'AUTHENTICATED' || $$rf{'Status'} eq 'REGISTERED' ? 1 : 0))
651 0 0 if ($ENV{'SAGEPAY_DEBUG_ERROR_ONLY'})