Documentation ¶
Overview ¶
Package test contains functions for testing `gokv.Store` implementations.
The functions are called from the actual test functions of all `gokv.Store` implementations in https://gfx.cafe/open/gokv. If you create your own implementation, you can and probably should use these functions to test your implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InteractWithStore ¶
InteractWithStore reads from and writes to the DB. Meant to be executed in a goroutine. Does NOT check if the DB works correctly (that's done elsewhere), only checks for errors that might occur due to concurrent access.
func TestConcurrentInteractions ¶
TestConcurrentInteractions launches a bunch of goroutines that concurrently work with the store.
Types ¶
Click to show internal directories.
Click to hide internal directories.