package
1.12.3-warp-verify6
Repository: https://github.com/ava-labs/avalanchego.git
Documentation: pkg.go.dev
# Functions
BenchmarkBatchDelete measures the time it takes to batch delete.
BenchmarkBatchPut measures the time it takes to batch put.
BenchmarkBatchWrite measures the time it takes to batch write.
BenchmarkDelete measures the time it takes to delete a (k, v) from a database.
BenchmarkGet measures the time it takes to get an operation from a database.
BenchmarkParallelDelete measures the time it takes to delete a (k, v) from the db.
BenchmarkParallelGet measures the time it takes to read in parallel.
BenchmarkParallelPut measures the time it takes to write to the db in parallel.
BenchmarkPut measures the time it takes to write an operation to a database.
No description provided by the author
No description provided by the author
No description provided by the author
Writes size data into the db in order to setup reads in subsequent tests.
No description provided by the author
No description provided by the author
TestBatchDelete tests to make sure that batched deletes work as expected.
TestBatchInner tests to make sure that inner can be used to write to the database.
TestBatchLargeSize tests to make sure that the batch can support a large amount of entries.
TestBatchPut tests to make sure that batched writes work as expected.
TestBatchReplay tests to make sure that batches will correctly replay their contents.
TestBatchReplayPropagateError tests to make sure that batches will correctly propagate any returned error during Replay.
TestBatchReset tests to make sure that a batch drops un-written operations when it is reset.
TestBatchReuse tests to make sure that a batch can be reused once it is reset.
TestBatchRewrite tests to make sure that write can be called multiple times on a batch and the values will be updated correctly.
No description provided by the author
No description provided by the author
TestCompactNoPanic tests to make sure compact never panics.
No description provided by the author
No description provided by the author
TestIterator tests to make sure the database iterates over the database contents lexicographically.
TestIteratorClosed tests to make sure that an iterator that was created with a closed database will report a closed error correctly.
TestIteratorError tests to make sure that an iterator on a database will report itself as being exhausted and return [database.ErrClosed] to indicate that the iteration was not successful.
TestIteratorErrorAfterRelease tests to make sure that an iterator that was released still reports the error correctly.
TestIteratorMemorySafety tests to make sure that keys can values are able to be modified from the returned iterator.
TestIteratorPrefix tests to make sure the iterator can be configured to skip keys missing the provided prefix.
TestIteratorSnapshot tests to make sure the database iterates over a snapshot of the database at the time of the iterator creation.
TestIteratorStart tests to make sure the iterator can be configured to start mid way through the database.
TestIteratorStartPrefix tests to make sure that the iterator can start mid way through the database while skipping a prefix.
No description provided by the author
No description provided by the author
TestMemorySafetyBatch ensures it is safe to modify a key after passing it to Batch.Put.
TestMemorySafetyDatabase ensures it is safe to modify a key after passing it to Database.Put and Database.Get.
No description provided by the author
No description provided by the author
No description provided by the author
TestNewBatchClosed tests to make sure that calling NewBatch on a closed database returns a batch that errors correctly.
No description provided by the author
No description provided by the author
TestSimpleKeyValue tests to make sure that simple Put + Get + Delete + Has calls return the expected values.
TestSimpleKeyValueClosed tests to make sure that Put + Get + Delete + Has calls return the correct error when the database has been closed.
# Variables
Benchmarks is a list of all database benchmarks.
BenchmarkSizes to use with each benchmark.
Tests is a list of all database tests.
TestsBasic is a list of all basic database tests that require only a KeyValueReaderWriterDeleter.