github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/ledger/common/proof/proof_test.go (about) 1 package proof_test 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/require" 7 8 "github.com/onflow/flow-go/ledger/common/proof" 9 "github.com/onflow/flow-go/ledger/common/testutils" 10 ) 11 12 // Test_ProofVerify tests proof verification 13 func Test_TrieProofVerify(t *testing.T) { 14 p, sc := testutils.TrieProofFixture() 15 require.True(t, proof.VerifyTrieProof(p, sc)) 16 } 17 18 // Test_BatchProofVerify tests batch proof verification 19 func Test_TrieBatchProofVerify(t *testing.T) { 20 bp, sc := testutils.TrieBatchProofFixture() 21 require.True(t, proof.VerifyTrieBatchProof(bp, sc)) 22 }