Branch Coverage

blib/lib/Steemit/ECDSA.pm
Criterion Covered Total %
branch 16 34 47.0


line true false branch
16 0 2 if ($nonce)
21 0 2 unless length $hash == 32
79 0 2 if ($s > $N_OVER_TWO)
84 0 2 if (my $error = $@ and not $i)
85 0 0 unless $error =~ /Unable to find valid recovery factor/u
121 0 2 unless $r > 0 and $r < $n and $s > 0 and $s < $n
138 2 1 if ($Qprime->x == $Q->x and $Qprime->y == $Q->y)
152 0 4 unless $i >= 0 and $i < 4
157 0 4 if $r < 0 or $r > $n
158 0 4 if $s < 0 or $s > $n
164 0 4 $isSecondKey ? :
168 0 4 unless $nR->infinity
185 0 0 if ($Q->y % 2) { }
204 1 0 if ($y eq $yr)
208 0 0 if ($y eq $yr)
231 3 2 if $i % 2 ne $y % 2
239 0 3 unless $key->isa('Math::BigInt')