()
| 76 | |
| 77 | #[tokio::test] |
| 78 | async fn test_validate_invalid_script_pubkey() { |
| 79 | let (esplora, mut data, _) = setup_and_create_graphs().await; |
| 80 | |
| 81 | let deposit_tx = data.peg_in_graphs[1].peg_in_deposit_transaction.tx_mut(); |
| 82 | deposit_tx.output[0].script_pubkey = generate_burn_script(); |
| 83 | |
| 84 | let result = BitVMClient::validate_data(&esplora, &data).await; |
| 85 | |
| 86 | assert!(!result); |
| 87 | } |
| 88 | |
| 89 | async fn setup_and_create_graphs() -> (AsyncClient, BitVMClientPublicData, OutPoint) { |
| 90 | let config = setup_test().await; |
nothing calls this directly
no test coverage detected