Branch Coverage

blib/lib/Business/OnlinePayment/OpenECHO.pm
Criterion Covered Total %
branch 8 38 21.0


line true false branch
100 0 2 if (lc $content{'action'} eq 'void')
109 2 0 unless defined $avs and length $avs
112 2 0 if ($content{'type'} =~ /^(cc|visa|mastercard|american express|discover)$/i) { }
0 0 elsif ($content{'type'} =~ /^e?check$/i) { }
115 2 0 if ($avs) { }
141 0 2 unless $content{'type'} = $map{lc $content{'action'}}
239 0 0 if ($self->transaction_type =~ /^[EA][VS]$/)
241 0 0 unless $$self{'_content'}{'expiration'} =~ /^(\d+)\D+\d*(\d{2})$/
244 0 0 if $month =~ /^\d$/
249 0 0 if ($self->transaction_type =~ /^D[DVCH]$/)
253 0 0 if not length $$self{'_content'}{'ec_serial_number'} and $$self{'_content'}{'ec_payment_type'} =~ /^(PPD)?$/i
257 0 0 unless $$self{'_content'}{'ec_payee'} = $self->payee
262 0 0 if exists $$self{'_content'}{'recurring_billing'} and $$self{'_content'}{'recurring_billing'} =~ /^y/i
275 0 0 if $Business::OnlinePayment::OpenECHO::DEBUG
308 0 0 if ($self->result_code =~ /^[GR]$/) { }
326 0 0 if ($decline_code =~ /^(00)?30$/)
335 0 0 if $page eq ''
373 0 2 if ($self->transaction_type =~ /^D[DCVH]$/)
459 2 6 if ($type eq 'OPEN') { }