Branch Coverage

blib/lib/Business/Bitcoin/Request.pm
Criterion Covered Total %
branch 6 30 20.0


line true false branch
21 0 1 unless $args{'Amount'} =~ /^\d+$/
0 1 if $args{'StartIndex'} and $args{'StartIndex'} =~ /\D/
24 1 0 defined $args{'StartIndex'} ? :
25 1 0 defined $args{'Reference'} ? :
26 0 1 unless $db->do("INSERT INTO requests values ($index, '$args{'Amount'}', NULL, $refid, '${timestamp}');")
29 1 0 unless my $address = `$ku $xpub -s 0/$index -a`
34 0 0 defined $args{'Confirmations'} ? :
48 0 0 unless defined $args{'Address'} or defined $args{'Reference'}
49 0 0 if defined $args{'Address'} and defined $args{'Reference'}
52 0 0 defined $args{'Address'} ? :
57 0 0 defined $args{'Confirmations'} ? :
63 0 0 if $auto eq 'DESTROY'
64 0 0 if ($auto =~ /^(confirmations)$/x)
65 0 0 if defined $_[0]
67 0 0 if ($auto =~ /^(amount|address|reference|version|created|confirmations)$/x) { }