Skip to content

Commit 81921d6

Browse files
committed
test(lib): do not report coverage for compute_shared_secret
1 parent 143699b commit 81921d6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

silentpayments/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ pub fn get_smallest_lexicographic_outpoint(outpoints: &[OutPoint]) -> [u8; 36] {
9494
result
9595
}
9696

97+
// Do not report coverage for this function as it is a wrapper around external lib function
98+
// shared_secret_point
99+
#[cfg_attr(coverage_nightly, coverage(off))]
97100
pub fn compute_shared_secret(sk: &SecretKey, pk: &PublicKey) -> PublicKey {
98101
let mut ss_bytes = [0u8; 65];
99102
ss_bytes[0] = 0x04;

0 commit comments

Comments
 (0)