add dummy tests for validate_bond_tx_hex()

This commit is contained in:
f321x
2024-07-10 11:56:15 +00:00
parent 69481c3982
commit 5ceea09069

View File

@ -116,7 +116,6 @@ impl<D: bdk::database::BatchDatabase> CoordinatorWallet<D> {
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;