Condition Coverage

blib/lib/Business/OnlinePayment/Litle.pm
Criterion Covered Total %
condition 26 173 15.0


and 3 conditions

line !l l&&!r l&&r condition
241 6 0 0 $content->{'recurring_billing'} and $content->{'recurring_billing'} eq 'YES'
257 0 0 6 $content->{'products'} and ref $content->{'products'} eq 'ARRAY'
264 0 0 0 $content->{'velocity_check'} != 0 and not $content->{'velocity_check'} =~ /false/i
6 0 0 $content->{'velocity_check'} and ($content->{'velocity_check'} != 0 and not $content->{'velocity_check'} =~ /false/i)
272 0 0 0 $content->{'partial_auth'} != 0 and not $content->{'partial_auth'} =~ /false/i
6 0 0 $content->{'partial_auth'} and ($content->{'partial_auth'} != 0 and not $content->{'partial_auth'} =~ /false/i)
291 150 60 22 $trunc->[3] and $trunc->[2]
60 2 20 $trunc->[3] and $trunc->[2] and $len != 0
62 20 0 $trunc->[3] and $trunc->[2] and $len != 0 and $len < $trunc->[2]
150 0 82 $trunc->[3] and $trunc->[1]
0 82 0 $trunc->[3] and $trunc->[1] and $len > $trunc->[1]
358 2 4 0 not defined $content->{'card_token'} and defined $content->{'card_token'}
479 0 0 6 defined $content->{'products'} and scalar @{$content->{'products'};} < 100
948 0 0 0 exists $response->{'response'} and $response->{'response'} == 1
973 0 0 0 $resp->{'enhancedAuthResponse'} and $resp->{'enhancedAuthResponse'}{'fundingSource'}
0 0 0 $resp->{'enhancedAuthResponse'} and $resp->{'enhancedAuthResponse'}{'fundingSource'} and $resp->{'enhancedAuthResponse'}{'fundingSource'}{'type'} eq 'PREPAID'
984 0 0 0 defined $resp->{'duplicate'} and $resp->{'duplicate'} eq 'true'
997 0 0 0 $resp->{'enhancedAuthResponse'} and $resp->{'enhancedAuthResponse'}{'affluence'}
1003 0 0 0 $self->result_code eq '802' and $self->card_token
1119 0 0 0 $action eq 'RETRIEVE' and $response->{'status'} =~ /^200/
0 0 0 $action eq 'RETRIEVE' and $response->{'status'} =~ /^200/ and not substr($response->{'content'}, 0, 500) =~ /
1125 0 0 0 defined $xml_response and defined $xml_response->{'ChargebackCase'}{'Document'}{'ResponseCode'}
1162 0 0 0 defined $xml_response and $xml_response->{'ChargebackCase'}{'ResponseCode'}
0 0 0 defined $xml_response and $xml_response->{'ChargebackCase'}{'DocumentEntry'}
1170 0 0 0 defined $ref->{'id'} and ref $ref->{'id'} eq ''
1291 0 0 0 $opts{'method'} and $opts{'method'} eq 'sftp'
0 0 0 $opts{'method'} and $opts{'method'} eq 'https'
1318 0 0 0 exists $response->{'response'} and $response->{'response'} == 1
1425 0 0 0 exists $response->{'response'} and $response->{'response'} == 1
1551 0 0 0 exists $response->{'response'} and $response->{'response'} == 1
1595 0 0 160 $map{'content'} and ref $map{'content'} eq 'HASH'
1697 0 0 0 $content{'activity_date'} && $content{'activity_date'} =~ /^\d{4}-(\d{2})-(\d{2})$/
1770 0 0 0 exists $response->{'response'} and $response->{'response'} == 1

or 2 conditions

line l !l condition
142 0 0 $self->{'test_transaction'} || 0
675 0 0 $content->{'card_number'} || ''
683 1 1 $content->{'card_number'} || $content->{'card_token'} || ''
721 0 0 $content->{'card_number'} || $content->{'card_token'} || ''
815 0 0 $content->{'card_number'} || $content->{'card_token'} || ''
919 0 0 $content{'report_group'} || 'BOP'
0 0 $content{'customer_id'} || 1
965 0 0 $resp->{'litleToken'} || $resp->{'tokenResponse'}{'litleToken'} || $content{'card_token'} || ''
966 0 0 $resp->{'litleTxnId'} || ''
967 0 0 $resp->{'response'} || ''
969 0 0 $resp->{'authCode'} || ''
970 0 0 $resp->{'fraudResult'}{'cardValidationResult'} || ''
972 0 0 $resp->{'fraudResult'}{'avsResult'} || ''
1094 0 0 $content{'mimetype'} or ''
1113 0 0 $content{'mimetype'} || 'text/plain'
1274 0 0 $entry->{'report_group'} || 'BOP'
0 0 $entry->{'customer_id'} || 1
1468 0 0 $args->{'ftp_timeout'} || 90
1560 0 0 $response->{'message'} || 'No reason given'
1679 6 0 $ptr->{'password'} || ''
0 6 $ptr->{'ftp_password'} || ''
1698 0 0 $content{'activity_date'} || 'undef'

or 3 conditions

line l !l&&r !l&&!r condition
225 6 0 0 $actions{$action} || $action
239 4 0 0 $$type_translate{cardtype($content->{'card_number'})} || $content->{'type'}
363 0 6 0 $content->{'invoice_number_length_15'} ||= $content->{'invoice_number'}
1003 0 0 0 $self->result_code eq '010' or $self->result_code eq '802' and $self->card_token
1227 0 0 0 not defined $self->{'batch_entries'} or scalar @{$self->{'batch_entries'};} < 1
1254 0 0 0 $opts{'batch_id'} || time
1265 0 0 0 $opts{'batch_id'} || time
1295 0 0 0 $opts{'batch_id'} || $opts{'login'} . '_' . time
1697 0 0 0 not $content{'activity_date'} && $content{'activity_date'} =~ /^\d{4}-(\d{2})-(\d{2})$/ or $1 > 12
0 0 0 not $content{'activity_date'} && $content{'activity_date'} =~ /^\d{4}-(\d{2})-(\d{2})$/ or $1 > 12 or $2 > 31