Skip to content

Commit b818ad1

Browse files
committed
add test to make codecov succeed
1 parent f7ba241 commit b818ad1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/seals.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,20 @@ pub mod bitcoin {
8585
}
8686
}
8787
}
88+
89+
#[cfg(test)]
90+
mod tests {
91+
use bp::seals::{TxoSealExt, WOutpoint, WTxoSeal};
92+
use bp::Outpoint;
93+
94+
use super::*;
95+
96+
#[test]
97+
fn auth_token() {
98+
let seal = WTxoSeal {
99+
primary: WOutpoint::Wout(0u32.into()),
100+
secondary: TxoSealExt::Fallback(Outpoint::coinbase()),
101+
};
102+
assert_eq!(seal.auth_token().to_string(), "at:lIIfSD7P-RQi0r3kA-7gZdmE7Q-S66QSwzG-NCxNnh7V-225u4Q");
103+
}
104+
}

0 commit comments

Comments
 (0)