Condition Coverage

blib/lib/Steemit/ECDSA.pm
Criterion Covered Total %
condition 26 55 47.2


and 3 conditions

line !l l&&!r l&&r condition
67 0 0 7 $k > 0 and $k < $n
0 2 5 $k > 0 and $k < $n and $r > 0
2 0 5 $k > 0 and $k < $n and $r > 0 and $s > 0
2 0 5 $k > 0 and $k < $n and $r > 0 and $s > 0 and length $r->to_bytes == 32
0 0 5 $k > 0 and $k < $n and $r > 0 and $s > 0 and length $r->to_bytes == 32 and length $s->to_bytes == 32
0 3 2 $k > 0 and $k < $n and $r > 0 and $s > 0 and length $r->to_bytes == 32 and length $s->to_bytes == 32 and _are_rs_canonical($r, $s)
84 2 0 0 my $error = $@ and not $i
121 0 0 2 $r > 0 and $r < $n
0 0 2 $r > 0 and $r < $n and $s > 0
0 0 2 $r > 0 and $r < $n and $s > 0 and $s < $n
138 1 0 2 $Qprime->x == $Q->x and $Qprime->y == $Q->y
152 0 0 4 $i >= 0 and $i < 4

or 2 conditions

line l !l condition
14 2 0 $nonce //= 0
150 4 0 $i //= 0

or 3 conditions

line l !l&&r !l&&!r condition
71 1 4 0 $::testing_only::inject_k // 'Math::BigInt'->from_bytes($v)
103 0 0 2 unpack('xC', $c) & 128 || unpack('xC', $c) == 0 && !(unpack('x[2]C', $c) & 128) || unpack('x[33]C', $c) & 128 || unpack('x[33]C', $c) == 0 && !(unpack('x[34]C', $c) & 128)
157 0 0 4 $r < 0 or $r > $n
158 0 0 4 $s < 0 or $s > $n
160 1 0 3 $i == 1 || $i == 3