Branch Coverage

blib/lib/Business/OnlinePayment.pm
Criterion Covered Total %
branch 52 90 57.7


line true false branch
74 7 0 if (@_) { }
78 5 2 exists $Business::OnlinePayment::_info_handler{$key} ? :
80 0 0 wantarray ? :
87 1 20 unless $processor
91 1 19 if $@
95 0 19 if ($self->can('set_defaults'))
108 19 0 unless ($Presubmit_Added{$subclass})
116 0 12 unless $self->_pre_submit(@_)
131 0 0 if ($risk_transaction->is_success) { }
134 0 0 if ($risk_transaction->fraud_score <= $self->maximum_fraud_score) { }
153 12 3 unless $fraud_detection
159 4 2 if ($@) { }
160 0 4 unless $@ =~ /^Can\'t locate/
164 2 0 if ($risk_tx->can('set_defaults'))
179 7 13 if (%params)
180 1 6 if ($params{'type'})
183 15 5 exists $self->{'_content'} ? :
192 23 0 unless exists $content{$_}
195 3 1 if @missing
243 11 152 if $self->can($_)
244 1 1 if (@_)
0 0 if (@_)
2 0 if (@_)
0 0 if (@_)
0 0 if (@_)
3 17 if (@_)
0 0 if (@_)
0 0 if (@_)
0 0 if (@_)
2 2 if (@_)
1 1 if (@_)
1 1 if (@_)
3 1 if (@_)
2 0 if (@_)
3 2 if (@_)
2 2 if (@_)
2 2 if (@_)
0 0 if (@_)
0 0 if (@_)
2 0 if (@_)
0 0 if (@_)
1 1 if (@_)
1 2 if (@_)
252 0 0 if $value =~ /^[yt]/i
253 0 0 if $value =~ /^[fn]/i