MCPcopy Create free account
hub / github.com/BitVM/BitVM / test_validate_invalid_value

Function test_validate_invalid_value

bridge/tests/bridge/client/validate.rs:66–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64
65#[tokio::test]
66async fn test_validate_invalid_value() {
67 let (esplora, mut data, _) = setup_and_create_graphs().await;
68
69 let deposit_tx = data.peg_in_graphs[1].peg_in_deposit_transaction.tx_mut();
70 deposit_tx.output[0].value = Amount::from_sat(1);
71
72 let result = BitVMClient::validate_data(&esplora, &data).await;
73
74 assert!(!result);
75}
76
77#[tokio::test]
78async fn test_validate_invalid_script_pubkey() {

Callers

nothing calls this directly

Calls 2

setup_and_create_graphsFunction · 0.70
tx_mutMethod · 0.45

Tested by

no test coverage detected