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

Function test_mmr_native_fail_0

header-chain/src/mmr_native.rs:153–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 #[test]
152 #[should_panic(expected = "MMR is empty")]
153 fn test_mmr_native_fail_0() {
154 let mmr = MMRNative::new();
155 let (_leaf, _mmr_proof) = mmr.generate_proof(0);
156 }
157
158 #[test]
159 #[should_panic(expected = "Index out of bounds")]

Callers

nothing calls this directly

Calls 1

generate_proofMethod · 0.45

Tested by

no test coverage detected