Branch Coverage

blib/lib/Business/OnlinePayment.pm
Criterion Covered Total %
branch 52 92 56.5


line true false branch
75 7 0 if (@_) { }
79 5 2 exists $Business::OnlinePayment::_info_handler{$key} ? :
81 0 0 wantarray ? :
88 1 20 unless $processor
92 1 19 if $@
96 0 19 if ($self->can('set_defaults'))
109 19 0 unless ($Presubmit_Added{$subclass})
117 0 12 unless $self->_pre_submit(@_)
132 0 0 if ($risk_transaction->is_success) { }
135 0 0 if ($risk_transaction->fraud_score <= $self->maximum_fraud_score) { }
154 12 3 unless $fraud_detection
160 4 2 if ($@) { }
161 0 4 unless $@ =~ /^Can\'t locate/
165 2 0 if ($risk_tx->can('set_defaults'))
180 7 13 if (%params)
181 1 6 if ($params{'type'})
184 15 5 exists $self->{'_content'} ? :
193 23 0 unless exists $content{$_}
196 3 1 if @missing
244 11 158 if $self->can($_)
245 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 (@_)
0 0 if (@_)
253 0 0 if $value =~ /^[yt]/i
254 0 0 if $value =~ /^[fn]/i