From 5ceea090692802190b0fa540c0ad7fd4c8ab3a03 Mon Sep 17 00:00:00 2001 From: f321x Date: Wed, 10 Jul 2024 11:56:15 +0000 Subject: [PATCH] add dummy tests for validate_bond_tx_hex() --- taptrade-cli-demo/coordinator/src/wallet/mod.rs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/taptrade-cli-demo/coordinator/src/wallet/mod.rs b/taptrade-cli-demo/coordinator/src/wallet/mod.rs index 20f59dd..027e592 100644 --- a/taptrade-cli-demo/coordinator/src/wallet/mod.rs +++ b/taptrade-cli-demo/coordinator/src/wallet/mod.rs @@ -116,7 +116,6 @@ impl CoordinatorWallet { return Err(anyhow!("Bond fee rate too low")); } debug!("validate_bond_tx_hex(): Bond validation successful."); - panic!("fix function"); Ok(()) } @@ -167,6 +166,21 @@ mod tests { } } + #[tokio::test] + async fn test_transaction_without_signature() { + panic!("Not implemented"); + } + + #[tokio::test] + async fn test_transaction_with_invalid_signature() { + panic!("Not implemented"); + } + + #[tokio::test] + async fn test_transaction_with_spent_input() { + panic!("Not implemented"); + } + #[tokio::test] async fn test_valid_bond_tx() { let test_wallet = new_test_wallet("tprv8ZgxMBicQKsPdHuCSjhQuSZP1h6ZTeiRqREYS5guGPdtL7D1uNLpnJmb2oJep99Esq1NbNZKVJBNnD2ZhuXSK7G5eFmmcx73gsoa65e2U32").await;