github.com/koko1123/flow-go-1@v0.29.6/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/koko1123/flow-go-1/ledger/common/proof" 9 "github.com/koko1123/flow-go-1/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 }