Branch Coverage

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


line true false branch
122 0 0 if $value
154 0 0 ref $map{$k} ? :
174 0 0 $ENV{'SAGEPAY_F_SIMULATOR'} ? :
0 0 if $self->test_transaction
184 0 0 unless ($page)
191 0 0 if ($ENV{'SAGEPAY_DEBUG'})
203 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) { }
208 0 0 if ($ENV{'SAGEPAY_DEBUG_ERROR_ONLY'})
235 0 0 if ($ENV{'SAGEPAY_DEBUG'})
242 0 0 $ENV{'SAGEPAY_F_SIMULATOR'} ? :
0 0 if $self->test_transaction
256 0 0 unless ($page)
264 0 0 if ($ENV{'SAGEPAY_DEBUG'})
275 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)) { }
282 0 0 if ($ENV{'SAGEPAY_DEBUG_ERROR_ONLY'})
312 0 0 if ($ENV{'SAGEPAY_DEBUG'})
327 0 0 unless ($page)
335 0 0 if ($ENV{'SAGEPAY_DEBUG'})
342 0 0 $$rf{'Status'} eq 'OK' ? :
0 0 unless ($self->is_success($$rf{'Status'} eq 'OK' ? 1 : 0))
343 0 0 if ($ENV{'SAGEPAY_DEBUG_ERROR_ONLY'})
365 0 0 if ($ENV{'SAGEPAY_DEBUG'})
380 0 0 unless ($page)
388 0 0 if ($ENV{'SAGEPAY_DEBUG'})
395 0 0 $$rf{'Status'} eq 'OK' ? :
0 0 unless ($self->is_success($$rf{'Status'} eq 'OK' ? 1 : 0))
396 0 0 if ($ENV{'SAGEPAY_DEBUG_ERROR_ONLY'})
405 0 0 unless defined $self->vendor
407 0 0 $ENV{'SAGEPAY_F_SIMULATOR'} ? :
0 0 if $self->test_transaction
430 0 0 if ($ENV{'SAGEPAY_DEBUG'})
445 0 0 unless ($page)
453 0 0 if ($ENV{'SAGEPAY_DEBUG'})
461 0 0 $$rf{'Status'} eq 'OK' ? :
0 0 unless ($self->is_success($$rf{'Status'} eq 'OK' ? 1 : 0))
462 0 0 if ($ENV{'SAGEPAY_DEBUG_ERROR_ONLY'})
480 0 0 if $content{'startdate'}
485 0 0 $content{'customer_name'} || $content{'first_name'} ? :
493 0 0 if $content{'amount'}
505 0 0 if ($ENV{'SAGEPAY_DEBUG'})
519 0 0 unless ($page)
579 0 0 if ($ENV{'SAGEPAY_DEBUG'})
588 0 0 if $post_data{'TxType'} eq 'AUTHORISE'
599 0 0 unless ($page)
612 0 0 if ($self->result_code eq '3DAUTH' and $$rf{'3DSecureStatus'} eq 'OK')
622 0 0 if ($self->result_code eq 'PPREDIRECT')
631 0 0 if ($ENV{'SAGEPAY_DEBUG'})
636 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))
645 0 0 if ($ENV{'SAGEPAY_DEBUG_ERROR_ONLY'})