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

Function test_mmr_native_fail_1

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

Source from the content-addressed store, hash-verified

158 #[test]
159 #[should_panic(expected = "Index out of bounds")]
160 fn test_mmr_native_fail_1() {
161 let mut mmr = MMRNative::new();
162 mmr.append([0; 32]);
163 let (_leaf, _mmr_proof) = mmr.generate_proof(1);
164 }
165
166 #[test]
167 fn test_mmr_native() {

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
generate_proofMethod · 0.45

Tested by

no test coverage detected