line |
true |
false |
branch |
53
|
0 |
1 |
if $args->{'login'} and not $self->username
|
54
|
0 |
1 |
if $args->{'user'} and not $self->username
|
55
|
0 |
1 |
if $args->{'pin'} and not $self->password
|
74
|
0 |
0 |
if (ref $opts ne 'HASH')
|
78
|
0 |
0 |
unless $opts->{'id'}
|
79
|
0 |
0 |
unless $opts->{'id'} =~ /\A[\w-]+\z/
|
81
|
0 |
0 |
unless $self->mech
|
89
|
0 |
0 |
if ($self->mode eq 'simulation' and $self->save_dir and -f $self->save_dir . "/$opts->{'id'}.yaml")
|
96
|
0 |
0 |
if ($self->save_dir and $self->mode ne 'simulation')
|
113
|
0 |
0 |
if ($evalerr) { }
|
|
0 |
0 |
elsif (not $mech->success) { }
|
|
0 |
0 |
elsif ($opts->{'after_request'}) { }
|
122
|
0 |
0 |
if $errmsg
|
124
|
0 |
0 |
if ($errmsg)
|
165
|
0 |
7 |
if ($err = $self->_ps_detect($page, $stmt))
|
168
|
0 |
7 |
if ($err = $self->_ps_get_metadata($page, $stmt))
|
171
|
0 |
7 |
if ($err = $self->_ps_get_transactions($page, $stmt))
|
175
|
7 |
0 |
if (defined $stmt->{'_total_debit_in_stmt'})
|
181
|
63 |
30 |
if ($_->{'amount'} < 0)
|
185
|
0 |
7 |
if (abs $na - $nb >= 0.01)
|
192
|
7 |
0 |
if (defined $stmt->{'_total_credit_in_stmt'})
|
198
|
30 |
63 |
if ($_->{'amount'} > 0)
|
202
|
0 |
7 |
if (abs $na - $nb >= 0.01)
|
209
|
1 |
6 |
if (defined $stmt->{'_num_debit_tx_in_stmt'})
|
214
|
1 |
2 |
$_->{'amount'} < 0 ? :
|
216
|
0 |
1 |
if ($na != $nb)
|
223
|
1 |
6 |
if (defined $stmt->{'_num_credit_tx_in_stmt'})
|
228
|
2 |
1 |
$_->{'amount'} > 0 ? :
|
230
|
0 |
1 |
if ($na != $nb)
|
245
|
0 |
7 |
unless $status == 200
|
248
|
1 |
6 |
unless ($opts{'return_datetime_obj'} // 1)
|
254
|
19 |
20 |
if UNIVERSAL::isa($_, 'DateTime')
|