Branch Coverage

blib/lib/WebService/Dwolla.pm
Criterion Covered Total %
branch 0 160 0.0


line true false branch
86 0 0 unless (defined $config)
96 0 0 if ($key eq 'key')
100 0 0 if ($key eq 'secret')
104 0 0 if ($key eq 'token')
131 0 0 if (defined $$self{'redirect_uri'})
155 0 0 unless (defined $code)
172 0 0 if ($$response{'error'})
213 0 0 if ($mode ne 'test' and $mode ne 'live')
287 0 0 unless ($self->is_id_valid($id))
378 0 0 if ($type ne 'Personal' and $type ne 'Commercial' and $type ne 'NonProfit')
383 0 0 unless (defined $date_of_birth and $date_of_birth =~ /^\d{2}\-\d{2}\-\d{4}$/)
388 0 0 if ($errors)
552 0 0 unless (defined $acctnum)
556 0 0 unless (defined $trnnum and $trnnum =~ /^[0-9]{9}$/)
561 0 0 if (not defined $accttype or $accttype ne 'Checking' and $accttype ne 'Savings')
566 0 0 unless (defined $acctname)
571 0 0 if ($errors)
608 0 0 unless (defined $sourceid)
613 0 0 unless (defined $deposit1)
618 0 0 unless (defined $deposit2)
623 0 0 if ($errors)
658 0 0 unless (defined $pin and $pin =~ /^[0-9]{4}$/)
663 0 0 unless (defined $sourceid)
668 0 0 unless (defined $amount)
673 0 0 if ($errors)
707 0 0 unless (defined $pin and $pin =~ /^[0-9]{4}$/)
712 0 0 unless (defined $sourceid)
717 0 0 unless (defined $amount)
722 0 0 if ($errors)
787 0 0 unless (defined $pin and $pin =~ /^[0-9]+$/)
792 0 0 unless (defined $destid)
797 0 0 unless (defined $amount)
802 0 0 if ($errors)
863 0 0 unless (defined $destid)
868 0 0 unless (defined $amount)
873 0 0 if ($errors)
926 0 0 unless (defined $sourceid)
931 0 0 unless (defined $amount)
936 0 0 if ($errors)
1003 0 0 if (defined $amount)
1007 0 0 if (defined $notes)
1011 0 0 if (defined $fund_source)
1015 0 0 unless (defined $assume_costs)
1041 0 0 unless (defined $id)
1087 0 0 unless (defined $transaction)
1138 0 0 if (defined $since)
1139 0 0 if ($since =~ /^\d{2}\-\d{2}\-\d{4}$/) { }
1147 0 0 if (defined $types)
1224 0 0 unless (defined $quantity)
1266 0 0 unless ($self->is_id_valid($destid))
1271 0 0 unless (defined $allow_funding_sources)
1283 0 0 $$self{'mode'} eq 'test' ? :
0 0 $allow_funding_sources ? :
1299 0 0 if (defined $$self{'redirect_uri'})
1303 0 0 if (defined $callback)
1307 0 0 if (defined $orderid)
1313 0 0 if ($response != 0) { }
1314 0 0 if ($$response{'Result'} ne 'Success')
1346 0 0 unless (defined $signature)
1351 0 0 unless (defined $checkout_id)
1356 0 0 unless (defined $amount)
1361 0 0 if ($errors)
1368 0 0 if ($hash ne $signature)
1396 0 0 if ($hash ne $sheader)
1431 0 0 $$self{'mode'} eq 'test' ? :
1506 0 0 if (defined $id and $id =~ /([0-9]{3})\-*([0-9]{3})\-*([0-9]{4})/)
1592 0 0 if (defined $$params{$key})
1647 0 0 if (not defined $include_token or $include_token != 0)
1682 0 0 if ($$self{'debug_mode'})
1687 0 0 if ($method eq 'GET') { }
0 0 elsif ($method eq 'POST') { }
1691 0 0 if ($$self{'debug_mode'})
1702 0 0 if ($response->code ne '200')
1703 0 0 if ($$self{'debug_mode'})
1731 0 0 if ($$self{'debug_mode'})
1739 0 0 if ($$response{'Success'} == 0)
1743 0 0 if ($$response{'Response'})
1748 0 0 if ($errors)
1771 0 0 if ($$self{'debug_mode'})
1776 0 0 unless ($$response{'success'})