Documentation ¶
Index ¶
- func DBApplyChangeset(db types.StateStore, version int64, storeKey string, key, val [][]byte) error
- func FillData(db types.StateStore, numKeys int, versions int) error
- type StorageBenchSuite
- type StorageTestSuite
- func (s *StorageTestSuite) TestDatabaseApplyChangeset()
- func (s *StorageTestSuite) TestDatabaseBugInitialForwardIteration()
- func (s *StorageTestSuite) TestDatabaseBugInitialForwardIterationHigher()
- func (s *StorageTestSuite) TestDatabaseBugInitialReverseIteration()
- func (s *StorageTestSuite) TestDatabaseBugInitialReverseIterationHigher()
- func (s *StorageTestSuite) TestDatabaseClose()
- func (s *StorageTestSuite) TestDatabaseGetVersionedKey()
- func (s *StorageTestSuite) TestDatabaseIterator()
- func (s *StorageTestSuite) TestDatabaseIteratorClose()
- func (s *StorageTestSuite) TestDatabaseIteratorDomain()
- func (s *StorageTestSuite) TestDatabaseIteratorEmptyDomain()
- func (s *StorageTestSuite) TestDatabaseIteratorMultiVersion()
- func (s *StorageTestSuite) TestDatabaseIteratorNoDomain()
- func (s *StorageTestSuite) TestDatabaseIteratorRangedDeletes()
- func (s *StorageTestSuite) TestDatabaseLatestVersion()
- func (s *StorageTestSuite) TestDatabaseParallelDeleteIteration()
- func (s *StorageTestSuite) TestDatabaseParallelIterationVersions()
- func (s *StorageTestSuite) TestDatabaseParallelWriteDelete()
- func (s *StorageTestSuite) TestDatabasePrune()
- func (s *StorageTestSuite) TestDatabasePruneAndTombstone()
- func (s *StorageTestSuite) TestDatabasePruneKeepRecent()
- func (s *StorageTestSuite) TestDatabaseReverseIterator()
- func (s *StorageTestSuite) TestDatabaseVersionZero()
- func (s *StorageTestSuite) TestDatabaseVersionedKeys()
- func (s *StorageTestSuite) TestParallelIterationAndPruning()
- func (s *StorageTestSuite) TestParallelWriteAndPruning()
- func (s *StorageTestSuite) TestParallelWrites()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DBApplyChangeset ¶
Helper for creating the changeset and applying it to db
Types ¶
type StorageBenchSuite ¶
type StorageBenchSuite struct { BenchBackendName string NewDB func(dir string) (types.StateStore, error) }
StorageBenchSuite defines a reusable benchmark suite for all storage backends.
func (*StorageBenchSuite) BenchmarkApplyChangeset ¶
func (s *StorageBenchSuite) BenchmarkApplyChangeset(b *testing.B)
func (*StorageBenchSuite) BenchmarkGet ¶
func (s *StorageBenchSuite) BenchmarkGet(b *testing.B)
func (*StorageBenchSuite) BenchmarkIterate ¶
func (s *StorageBenchSuite) BenchmarkIterate(b *testing.B)
type StorageTestSuite ¶
type StorageTestSuite struct { suite.Suite NewDB func(dir string) (types.StateStore, error) EmptyBatchSize int SkipTests []string }
StorageTestSuite defines a reusable test suite for all storage backends.
func (*StorageTestSuite) TestDatabaseApplyChangeset ¶
func (s *StorageTestSuite) TestDatabaseApplyChangeset()
func (*StorageTestSuite) TestDatabaseBugInitialForwardIteration ¶ added in v0.0.27
func (s *StorageTestSuite) TestDatabaseBugInitialForwardIteration()
func (*StorageTestSuite) TestDatabaseBugInitialForwardIterationHigher ¶ added in v0.0.27
func (s *StorageTestSuite) TestDatabaseBugInitialForwardIterationHigher()
func (*StorageTestSuite) TestDatabaseBugInitialReverseIteration ¶ added in v0.0.27
func (s *StorageTestSuite) TestDatabaseBugInitialReverseIteration()
Tests bug where iterator loops continuously
func (*StorageTestSuite) TestDatabaseBugInitialReverseIterationHigher ¶ added in v0.0.27
func (s *StorageTestSuite) TestDatabaseBugInitialReverseIterationHigher()
func (*StorageTestSuite) TestDatabaseClose ¶
func (s *StorageTestSuite) TestDatabaseClose()
func (*StorageTestSuite) TestDatabaseGetVersionedKey ¶
func (s *StorageTestSuite) TestDatabaseGetVersionedKey()
func (*StorageTestSuite) TestDatabaseIterator ¶
func (s *StorageTestSuite) TestDatabaseIterator()
func (*StorageTestSuite) TestDatabaseIteratorClose ¶
func (s *StorageTestSuite) TestDatabaseIteratorClose()
func (*StorageTestSuite) TestDatabaseIteratorDomain ¶
func (s *StorageTestSuite) TestDatabaseIteratorDomain()
func (*StorageTestSuite) TestDatabaseIteratorEmptyDomain ¶
func (s *StorageTestSuite) TestDatabaseIteratorEmptyDomain()
func (*StorageTestSuite) TestDatabaseIteratorMultiVersion ¶
func (s *StorageTestSuite) TestDatabaseIteratorMultiVersion()
func (*StorageTestSuite) TestDatabaseIteratorNoDomain ¶
func (s *StorageTestSuite) TestDatabaseIteratorNoDomain()
func (*StorageTestSuite) TestDatabaseIteratorRangedDeletes ¶
func (s *StorageTestSuite) TestDatabaseIteratorRangedDeletes()
func (*StorageTestSuite) TestDatabaseLatestVersion ¶
func (s *StorageTestSuite) TestDatabaseLatestVersion()
func (*StorageTestSuite) TestDatabaseParallelDeleteIteration ¶
func (s *StorageTestSuite) TestDatabaseParallelDeleteIteration()
func (*StorageTestSuite) TestDatabaseParallelIterationVersions ¶
func (s *StorageTestSuite) TestDatabaseParallelIterationVersions()
func (*StorageTestSuite) TestDatabaseParallelWriteDelete ¶
func (s *StorageTestSuite) TestDatabaseParallelWriteDelete()
func (*StorageTestSuite) TestDatabasePrune ¶
func (s *StorageTestSuite) TestDatabasePrune()
func (*StorageTestSuite) TestDatabasePruneAndTombstone ¶ added in v0.0.27
func (s *StorageTestSuite) TestDatabasePruneAndTombstone()
func (*StorageTestSuite) TestDatabasePruneKeepRecent ¶
func (s *StorageTestSuite) TestDatabasePruneKeepRecent()
func (*StorageTestSuite) TestDatabaseReverseIterator ¶
func (s *StorageTestSuite) TestDatabaseReverseIterator()
func (*StorageTestSuite) TestDatabaseVersionZero ¶ added in v0.0.27
func (s *StorageTestSuite) TestDatabaseVersionZero()
func (*StorageTestSuite) TestDatabaseVersionedKeys ¶
func (s *StorageTestSuite) TestDatabaseVersionedKeys()
func (*StorageTestSuite) TestParallelIterationAndPruning ¶
func (s *StorageTestSuite) TestParallelIterationAndPruning()
func (*StorageTestSuite) TestParallelWriteAndPruning ¶
func (s *StorageTestSuite) TestParallelWriteAndPruning()
func (*StorageTestSuite) TestParallelWrites ¶
func (s *StorageTestSuite) TestParallelWrites()
Click to show internal directories.
Click to hide internal directories.