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'}
460 0 0 6 defined $content->{'products'} and scalar @{$content->{'products'};} < 100
758 0 0 0 exists $response->{'response'} and $response->{'response'} == 1
783 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'
794 0 0 0 defined $resp->{'duplicate'} and $resp->{'duplicate'} eq 'true'
807 0 0 0 $resp->{'enhancedAuthResponse'} and $resp->{'enhancedAuthResponse'}{'affluence'}
813 0 0 0 $self->result_code eq '802' and $self->card_token
929 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) =~ /
935 0 0 0 defined $xml_response and defined $xml_response->{'ChargebackCase'}{'Document'}{'ResponseCode'}
972 0 0 0 defined $xml_response and $xml_response->{'ChargebackCase'}{'ResponseCode'}
0 0 0 defined $xml_response and $xml_response->{'ChargebackCase'}{'DocumentEntry'}
980 0 0 0 defined $ref->{'id'} and ref $ref->{'id'} eq ''
1101 0 0 0 $opts{'method'} and $opts{'method'} eq 'sftp'
0 0 0 $opts{'method'} and $opts{'method'} eq 'https'
1128 0 0 0 exists $response->{'response'} and $response->{'response'} == 1
1235 0 0 0 exists $response->{'response'} and $response->{'response'} == 1
1361 0 0 0 exists $response->{'response'} and $response->{'response'} == 1
1405 0 0 88 $map{'content'} and ref $map{'content'} eq 'HASH'
1507 0 0 0 $content{'activity_date'} && $content{'activity_date'} =~ /^\d{4}-(\d{2})-(\d{2})$/
1580 0 0 0 exists $response->{'response'} and $response->{'response'} == 1

or 2 conditions

line l !l condition
142 0 0 $self->{'test_transaction'} || 0
560 0 0 $content->{'card_number'} || ''
568 1 1 $content->{'card_number'} || $content->{'card_token'} || ''
588 0 0 $content->{'card_number'} || $content->{'card_token'} || ''
632 0 0 $content->{'card_number'} || $content->{'card_token'} || ''
729 0 0 $content{'report_group'} || 'BOP'
0 0 $content{'customer_id'} || 1
775 0 0 $resp->{'litleToken'} || $resp->{'tokenResponse'}{'litleToken'} || $content{'card_token'} || ''
776 0 0 $resp->{'litleTxnId'} || ''
777 0 0 $resp->{'response'} || ''
779 0 0 $resp->{'authCode'} || ''
780 0 0 $resp->{'fraudResult'}{'cardValidationResult'} || ''
782 0 0 $resp->{'fraudResult'}{'avsResult'} || ''
904 0 0 $content{'mimetype'} or ''
923 0 0 $content{'mimetype'} || 'text/plain'
1084 0 0 $entry->{'report_group'} || 'BOP'
0 0 $entry->{'customer_id'} || 1
1278 0 0 $args->{'ftp_timeout'} || 90
1370 0 0 $response->{'message'} || 'No reason given'
1489 6 0 $ptr->{'password'} || ''
0 6 $ptr->{'ftp_password'} || ''
1508 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'}
813 0 0 0 $self->result_code eq '010' or $self->result_code eq '802' and $self->card_token
1037 0 0 0 not defined $self->{'batch_entries'} or scalar @{$self->{'batch_entries'};} < 1
1064 0 0 0 $opts{'batch_id'} || time
1075 0 0 0 $opts{'batch_id'} || time
1105 0 0 0 $opts{'batch_id'} || $opts{'login'} . '_' . time
1507 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