Documentation ¶
Index ¶
- func All(t *testing.T, tester DatastoreTester)
- func ConcurrentWriteSerializationTest(t *testing.T, tester DatastoreTester)
- func DeleteRelationshipsTest(t *testing.T, tester DatastoreTester)
- func EmptyNamespaceDeleteTest(t *testing.T, tester DatastoreTester)
- func InvalidReadsTest(t *testing.T, tester DatastoreTester)
- func MultipleReadsInRWTTest(t *testing.T, tester DatastoreTester)
- func NamespaceDeleteTest(t *testing.T, tester DatastoreTester)
- func NamespaceWriteTest(t *testing.T, tester DatastoreTester)
- func RevisionQuantizationTest(t *testing.T, tester DatastoreTester)
- func SimpleTest(t *testing.T, tester DatastoreTester)
- func StatsTest(t *testing.T, tester DatastoreTester)
- func UsersetsTest(t *testing.T, tester DatastoreTester)
- func WatchCancelTest(t *testing.T, tester DatastoreTester)
- func WatchTest(t *testing.T, tester DatastoreTester)
- type DatastoreTester
- type DatastoreTesterFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶
func All(t *testing.T, tester DatastoreTester)
All runs all generic datastore tests on a DatastoreTester.
func ConcurrentWriteSerializationTest ¶
func ConcurrentWriteSerializationTest(t *testing.T, tester DatastoreTester)
ConcurrentWriteSerializationTest uses goroutines and channels to intentionally set up a deadlocking dependency between transactions.
func DeleteRelationshipsTest ¶
func DeleteRelationshipsTest(t *testing.T, tester DatastoreTester)
DeleteRelationshipsTest tests whether or not the requirements for deleting relationships hold for a particular datastore.
func EmptyNamespaceDeleteTest ¶
func EmptyNamespaceDeleteTest(t *testing.T, tester DatastoreTester)
EmptyNamespaceDeleteTest tests deleting an empty namespace in the datastore.
func InvalidReadsTest ¶
func InvalidReadsTest(t *testing.T, tester DatastoreTester)
InvalidReadsTest tests whether or not the requirements for reading via invalid revisions hold for a particular datastore.
func MultipleReadsInRWTTest ¶
func MultipleReadsInRWTTest(t *testing.T, tester DatastoreTester)
func NamespaceDeleteTest ¶
func NamespaceDeleteTest(t *testing.T, tester DatastoreTester)
NamespaceDeleteTest tests whether or not the requirements for deleting namespaces hold for a particular datastore.
func NamespaceWriteTest ¶
func NamespaceWriteTest(t *testing.T, tester DatastoreTester)
NamespaceWriteTest tests whether or not the requirements for writing namespaces hold for a particular datastore.
func RevisionQuantizationTest ¶
func RevisionQuantizationTest(t *testing.T, tester DatastoreTester)
RevisionQuantizationTest tests whether or not the requirements for revisions hold for a particular datastore.
func SimpleTest ¶
func SimpleTest(t *testing.T, tester DatastoreTester)
SimpleTest tests whether or not the requirements for simple reading and writing of relationships hold for a particular datastore.
func StatsTest ¶
func StatsTest(t *testing.T, tester DatastoreTester)
func UsersetsTest ¶
func UsersetsTest(t *testing.T, tester DatastoreTester)
UsersetsTest tests whether or not the requirements for reading usersets hold for a particular datastore.
func WatchCancelTest ¶
func WatchCancelTest(t *testing.T, tester DatastoreTester)
WatchCancelTest tests whether or not the requirements for cancelling watches hold for a particular datastore.
func WatchTest ¶
func WatchTest(t *testing.T, tester DatastoreTester)
WatchTest tests whether or not the requirements for watching changes hold for a particular datastore.
Types ¶
type DatastoreTester ¶
type DatastoreTester interface { // New creates a new datastore instance for a single test. New(revisionQuantization, gcWindow time.Duration, watchBufferLength uint16) (datastore.Datastore, error) }
DatastoreTester provides a generic datastore suite a means of initializing a particular datastore.