Documentation ¶
Overview ¶
Package enginetest defines a list of tests that can be used to test a complete or partial engine implementation.
Index ¶
- func BenchmarkStorePut(b *testing.B, builder Builder)
- func BenchmarkStoreScan(b *testing.B, builder Builder)
- func TestEngine(t *testing.T, builder Builder)
- func TestQueries(t *testing.T, builder Builder)
- func TestQueriesSameTransaction(t *testing.T, builder Builder)
- func TestStoreDelete(t *testing.T, builder Builder)
- func TestStoreGet(t *testing.T, builder Builder)
- func TestStoreIterator(t *testing.T, builder Builder)
- func TestStoreNextSequence(t *testing.T, builder Builder)
- func TestStorePut(t *testing.T, builder Builder)
- func TestStoreTruncate(t *testing.T, builder Builder)
- func TestSuite(t *testing.T, builder Builder)
- func TestTransactionCommitRollback(t *testing.T, builder Builder)
- func TestTransactionCreateStore(t *testing.T, builder Builder)
- func TestTransactionDropStore(t *testing.T, builder Builder)
- func TestTransactionGetStore(t *testing.T, builder Builder)
- type Builder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BenchmarkStorePut ¶
BenchmarkStorePut benchmarks the Put method with 1, 10, 1000 and 10000 successive insertions.
func BenchmarkStoreScan ¶
BenchmarkStoreScan benchmarks the AscendGreaterOrEqual method with 1, 10, 1000 and 10000 successive insertions.
func TestEngine ¶
TestEngine runs a list of tests against the provided engine.
func TestQueries ¶
TestQueries test simple queries against the engine.
func TestQueriesSameTransaction ¶
TestQueriesSameTransaction test simple queries in the same transaction.
func TestStoreDelete ¶
TestStoreDelete verifies Delete behaviour.
func TestStoreGet ¶
TestStoreGet verifies Get behaviour.
func TestStoreIterator ¶
TestStoreIterator verifies Iterator behaviour.
func TestStoreNextSequence ¶
TestStoreNextSequence verifies NextSequence behaviour.
func TestStorePut ¶
TestStorePut verifies Put behaviour.
func TestStoreTruncate ¶
TestStoreTruncate verifies Truncate behaviour.
func TestSuite ¶
TestSuite tests an entire engine, transaction and related types needed to implement a Genji engine.
func TestTransactionCommitRollback ¶
TestTransactionCommitRollback runs a list of tests to verify Commit and Rollback behaviour of transactions created from the given engine.
func TestTransactionCreateStore ¶
TestTransactionCreateStore verifies CreateStore behaviour.
func TestTransactionDropStore ¶
TestTransactionDropStore verifies DropStore behaviour.
func TestTransactionGetStore ¶
TestTransactionGetStore verifies GetStore behaviour.