test

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2022 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestAddAndGetCircomProof

func TestAddAndGetCircomProof(t *testing.T, sto merkletree.Storage)

func TestAddDifferentOrder

func TestAddDifferentOrder(t *testing.T, sto merkletree.Storage,
	sto2 merkletree.Storage)

func TestAddRepeatedIndex

func TestAddRepeatedIndex(t *testing.T, sto merkletree.Storage)

func TestAll

func TestAll(t *testing.T, sb StorageBuilder)

func TestDelete

func TestDelete(t *testing.T, sto merkletree.Storage)

func TestDelete2

func TestDelete2(t *testing.T, sto merkletree.Storage,
	sto2 merkletree.Storage)

func TestDelete3

func TestDelete3(t *testing.T, sto merkletree.Storage,
	sto2 merkletree.Storage)

func TestDelete4

func TestDelete4(t *testing.T, sto merkletree.Storage,
	sto2 merkletree.Storage)

func TestDelete5

func TestDelete5(t *testing.T, sto merkletree.Storage,
	sto2 merkletree.Storage)

func TestDeleteNonExistingKeys

func TestDeleteNonExistingKeys(t *testing.T, sto merkletree.Storage)

func TestDumpLeafsImportLeafs

func TestDumpLeafsImportLeafs(t *testing.T, sto merkletree.Storage,
	sto2 merkletree.Storage)

func TestGenerateAndVerifyProof128

func TestGenerateAndVerifyProof128(t *testing.T, sto merkletree.Storage)

func TestGet

func TestGet(t *testing.T, sto merkletree.Storage)

func TestGraphViz

func TestGraphViz(t *testing.T, sto merkletree.Storage)

func TestNewTree

func TestNewTree(t *testing.T, sto merkletree.Storage)

func TestReturnKnownErrIfNotExists

func TestReturnKnownErrIfNotExists(t *testing.T, sto merkletree.Storage)

TestReturnKnownErrIfNotExists checks that the implementation of the db.Storage interface returns the expected error in the case that the value is not found

func TestSiblingsFromProof

func TestSiblingsFromProof(t *testing.T, sto merkletree.Storage)

func TestSmtVerifier

func TestSmtVerifier(t *testing.T, sto merkletree.Storage)

func TestStorageInsertGet

func TestStorageInsertGet(t *testing.T, sto merkletree.Storage)

TestStorageInsertGet checks that the implementation of the db.Storage interface behaves as expected

func TestTreeLimit

func TestTreeLimit(t *testing.T, sto merkletree.Storage)

func TestTreeRootWithOneNode added in v1.0.2

func TestTreeRootWithOneNode(t *testing.T, sto merkletree.Storage)

func TestTypesMarshalers

func TestTypesMarshalers(t *testing.T, sto merkletree.Storage)

func TestUpdate

func TestUpdate(t *testing.T, sto merkletree.Storage)

func TestUpdate2

func TestUpdate2(t *testing.T, sto merkletree.Storage)

func TestUpdateCircomProcessorProof

func TestUpdateCircomProcessorProof(t *testing.T, sto merkletree.Storage)

func TestVerifyProofCases

func TestVerifyProofCases(t *testing.T, sto merkletree.Storage)

func TestVerifyProofFalse

func TestVerifyProofFalse(t *testing.T, sto merkletree.Storage)

Types

type StorageBuilder

type StorageBuilder interface {
	NewStorage(t *testing.T) merkletree.Storage
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL