package
0.99.99-test-ignore
Repository: https://github.com/ava-labs/avalanchego.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

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.
TestBatchPut tests to make sure that batched writes work as expected.
TestBatchReplay tests to make sure that batches will correctly replay their contents.
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.
TestCompactNoPanic tests to make sure compact never panics.
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.
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.
TestIteratorStart tests to make sure the 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.
TestMemorySafetyDatabase 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.
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.
TestStatNoPanic tests to make sure that Stat never panics.

# Constants

CapacityReductionFactor ...
MaxExcessCapacityFactor ..

# Variables

common errors.
common errors.
common errors.
Tests is a list of all database tests.

# Interfaces

Batch is a write-only database that commits changes to its host database when Write is called.
Batcher wraps the NewBatch method of a backing data store.
Compacter wraps the Compact method of a backing data store.
Database contains all the methods required to allow handling different key-value data stores backing the database.
Iteratee wraps the NewIterator methods of a backing data store.
Iterator iterates over a database's key/value pairs.
KeyValueReader wraps the Has and Get method of a backing data store.
KeyValueWriter wraps the Put method of a backing data store.
Stater wraps the Stat method of a backing data store.