Condition Coverage

blib/lib/Lib/Pepper/Simple.pm
Criterion Covered Total %
condition 1 95 1.0


and 3 conditions

line !l l&&!r l&&r condition
298 0 0 0 $status->{'library_initialized'} && $status->{'instance_configured'} && $status->{'connection_open'}
313 0 0 0 defined $amount && $amount =~ /^\d+$/u
321 0 0 0 defined $transactionType and not $transactionType =~ /^\d+$/u
419 0 0 0 defined $amount && $amount =~ /^\d+$/u
422 0 0 0 exists $options{'reference_number'} and defined $options{'reference_number'}
660 0 0 0 $self->{'reph'} and $self->{'reph'}->can("debuglog")

or 2 conditions

line l !l condition
107 0 0 $params{'library_path'} // ""
0 0 $params{'pos_number'} // "0001"
0 0 $params{'merchant_password'} // "000000"
0 0 $params{'language'} // 25966
0 0 $params{'ticket_width'} // 40
0 0 $params{'ticket_printing_mode'} // 0
0 0 $params{'tip_enabled'} // 0
0 0 $params{'userdata'} // {}
207 0 0 $self->{'callback'} // \&Lib::Pepper::Simple::_defaultCallback
213 0 0 $configData->{'iRecoveryFlag'} // 0
234 0 0 $params{'operator_id'} // "OPERATOR01"
318 0 0 $options{'transaction_type'} // 11
332 0 0 $options{'options'} // {}
378 0 0 $outputData->{'iTransactionResultValue'} // -999
379 0 0 $outputData->{'sTransactionText'} || ''
396 0 0 $outputData->{'sTraceNumberString'} || undef
0 0 $outputData->{'sAuthorizationNumberString'} || undef
0 0 $outputData->{'sTransactionReferenceNumberString'} || undef
0 0 $outputData->{'sTerminalIdentificationString'} || undef
0 0 $outputData->{'sCardNameString'} || undef
0 0 $outputData->{'sCardNumberString'} || undef
0 0 $outputData->{'sTransactionDate'} || undef
0 0 $outputData->{'sTransactionTime'} || undef
485 0 0 $refundData->{'iTransactionResultValue'} // -999
486 0 0 $refundData->{'sTransactionText'} || ''
499 0 0 $refundData->{'sTraceNumberString'} || undef
530 0 0 $options{'options'} // {}
549 0 0 $outputData->{'iFunctionResultValue'} // -999
550 0 0 $outputData->{'sFunctionText'} || ''
561 0 0 $outputData->{'iNumberOfTransactions'} || 0
0 0 $outputData->{'iTotalAmount'} || 0
0 0 $outputData->{'sSettlementDate'} || undef
0 0 $outputData->{'sSettlementTime'} || undef
573 0 0 $INSTANCE_ID_COUNTERS{$terminal_type} //= 1

or 3 conditions

line l !l&&r !l&&!r condition
35 0 5 0 ref $proto || $proto
313 0 0 0 not defined $amount && $amount =~ /^\d+$/u or $amount <= 0
419 0 0 0 not defined $amount && $amount =~ /^\d+$/u or $amount <= 0