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

Function test_validate_success

bridge/tests/bridge/validate/validate.rs:16–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15#[tokio::test]
16async fn test_validate_success() {
17 let (peg_in_graph, peg_out_graph, _, esplora) = setup_and_create_graphs().await;
18
19 let is_peg_in_data_valid = peg_in_graph.validate();
20 let is_peg_out_data_valid = peg_out_graph.validate(&esplora).await;
21
22 assert!(is_peg_in_data_valid.is_ok());
23 assert!(is_peg_out_data_valid.is_ok());
24}
25
26#[tokio::test]
27async fn test_validate_invalid_previous_output() {

Callers

nothing calls this directly

Calls 2

setup_and_create_graphsFunction · 0.70
validateMethod · 0.45

Tested by

no test coverage detected