| line |
true |
false |
branch |
|
38
|
1 |
4 |
unless (defined $params{'terminal_type'}) |
|
41
|
1 |
3 |
unless (defined $params{'terminal_address'}) |
|
47
|
2 |
1 |
if (defined $params{'config_xml'}) { } |
|
|
0 |
1 |
elsif (defined $params{'config_file'}) { } |
|
51
|
0 |
0 |
unless (-f $params{'config_file'}) |
|
54
|
0 |
0 |
unless open my $fh, "<", $params{'config_file'} |
|
63
|
0 |
2 |
if (defined $params{'license_xml'}) { } |
|
|
0 |
2 |
elsif (defined $params{'license_file'}) { } |
|
67
|
0 |
0 |
unless (-f $params{'license_file'}) |
|
70
|
0 |
0 |
unless open my $fh, "<", $params{'license_file'} |
|
119
|
0 |
0 |
if (exists $params{'config_byte'}) { } |
|
124
|
0 |
0 |
$self->{'ticket_printing_mode'} == 0 ? : |
|
130
|
0 |
0 |
if ($self->{'config_xml'} =~ /CARDTYPES_AUTODETECT/u) |
|
132
|
0 |
0 |
unless (defined $cardtypesPath) |
|
150
|
0 |
0 |
if ($needsInitialization) { } |
|
167
|
0 |
0 |
unless (_validate_config($self->{'library_path'}, $self->{'config_xml'}, $self->{'license_xml'})) |
|
181
|
0 |
0 |
unless (defined $instanceId) |
|
211
|
0 |
0 |
if (defined $configResult) |
|
215
|
0 |
0 |
if ($recoveryFlag) |
|
225
|
0 |
0 |
unless ($recoveryStatus) |
|
239
|
0 |
0 |
unless ($openResult->{'status'}) |
|
242
|
0 |
0 |
unless ($waitStatus) |
|
251
|
0 |
0 |
unless ($success) |
|
305
|
0 |
0 |
unless ($self->{'connection_open'}) |
|
308
|
0 |
0 |
unless ($self->{'configured'}) |
|
313
|
0 |
0 |
if (not defined $amount && $amount =~ /^\d+$/u or $amount <= 0) |
|
321
|
0 |
0 |
if (defined $transactionType and not $transactionType =~ /^\d+$/u) |
|
322
|
0 |
0 |
if ($transactionType eq 'goods') { } |
|
341
|
0 |
0 |
if ($self->{'tip_enabled'}) |
|
342
|
0 |
0 |
if (not exists $txnOptions->{'iServiceByteValue'}) { } |
|
357
|
0 |
0 |
defined $currency ? : |
|
|
0 |
0 |
keys %{$txnOptions;} ? : |
|
362
|
0 |
0 |
unless ($success) |
|
373
|
0 |
0 |
if (defined $result->{'output'}) |
|
396
|
0 |
0 |
$result->{'status'} ? : |
|
|
0 |
0 |
$transactionResult == 0 ? : |
|
|
0 |
0 |
$transactionResult == 0 ? : |
|
408
|
0 |
0 |
unless ($self->{'connection_open'}) |
|
411
|
0 |
0 |
unless ($self->{'configured'}) |
|
416
|
0 |
0 |
unless (defined $traceNumber) |
|
419
|
0 |
0 |
if (not defined $amount && $amount =~ /^\d+$/u or $amount <= 0) |
|
422
|
0 |
0 |
unless (exists $options{'reference_number'} and defined $options{'reference_number'}) |
|
452
|
0 |
0 |
if ($ENV{'DEBUG_PEPPER'}) |
|
469
|
0 |
0 |
unless ($refundSuccess) |
|
474
|
0 |
0 |
if ($ENV{'DEBUG_PEPPER'}) |
|
477
|
0 |
0 |
defined $refundResult ? : |
|
478
|
0 |
0 |
if (defined $refundResult) |
|
479
|
0 |
0 |
defined $refundResult->{'output'} ? : |
|
483
|
0 |
0 |
if (defined $refundResult->{'output'}) |
|
488
|
0 |
0 |
if ($ENV{'DEBUG_PEPPER'}) |
|
496
|
0 |
0 |
if ($refundTransResult == 0) { } |
|
517
|
0 |
0 |
unless ($self->{'connection_open'}) |
|
520
|
0 |
0 |
unless ($self->{'configured'}) |
|
534
|
0 |
0 |
unless ($success) |
|
544
|
0 |
0 |
if (defined $result->{'output'}) |
|
561
|
0 |
0 |
$functionResult == 0 ? : |
|
564
|
0 |
0 |
$functionResult == 0 ? : |
|
586
|
0 |
0 |
unless $LIBRARY_INITIALIZED |
|
589
|
0 |
0 |
if ($library_path ne $INIT_LIBRARY_PATH) |
|
594
|
0 |
0 |
if ($config_xml ne $INIT_CONFIG_XML) |
|
599
|
0 |
0 |
if ($license_xml ne $INIT_LICENSE_XML) |
|
619
|
0 |
0 |
if ($self->{'instance'}) |
|
631
|
0 |
0 |
unless $self->{'_instance_counted'} |
|
660
|
0 |
0 |
if ($self->{'reph'} and $self->{'reph'}->can('debuglog')) { } |