Documentation ¶
Index ¶
- func All(t *testing.T, tester DatastoreTester)
- func DeletePreconditionsTest(t *testing.T, tester DatastoreTester)
- func DeleteRelationshipsTest(t *testing.T, tester DatastoreTester)
- func InvalidReadsTest(t *testing.T, tester DatastoreTester)
- func NamespaceDeleteTest(t *testing.T, tester DatastoreTester)
- func NamespaceWriteTest(t *testing.T, tester DatastoreTester)
- func RevisionFuzzingTest(t *testing.T, tester DatastoreTester)
- func SimpleTest(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)
- func WritePreconditionsTest(t *testing.T, tester DatastoreTester)
- type DatastoreTester
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶ added in v1.0.0
func All(t *testing.T, tester DatastoreTester)
All runs all generic datastore tests on a DatastoreTester.
func DeletePreconditionsTest ¶ added in v1.0.0
func DeletePreconditionsTest(t *testing.T, tester DatastoreTester)
DeletePreconditionsTest tests whether or not the requirements for checking preconditions via DeleteRelationships hold for a particular datastore.
func DeleteRelationshipsTest ¶ added in v1.0.0
func DeleteRelationshipsTest(t *testing.T, tester DatastoreTester)
DeleteRelationshipsTest tests whether or not the requirements for deleting relationships hold for a particular datastore.
func InvalidReadsTest ¶ added in v1.0.0
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 NamespaceDeleteTest ¶ added in v1.0.0
func NamespaceDeleteTest(t *testing.T, tester DatastoreTester)
NamespaceDeleteTest tests whether or not the requirements for deleting namespaces hold for a particular datastore.
func NamespaceWriteTest ¶ added in v1.0.0
func NamespaceWriteTest(t *testing.T, tester DatastoreTester)
NamespaceWriteTest tests whether or not the requirements for writing namespaces hold for a particular datastore.
func RevisionFuzzingTest ¶ added in v1.0.0
func RevisionFuzzingTest(t *testing.T, tester DatastoreTester)
RevisionFuzzingTest tests whether or not the requirements for revisions hold for a particular datastore.
func SimpleTest ¶ added in v1.0.0
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 UsersetsTest ¶ added in v1.0.0
func UsersetsTest(t *testing.T, tester DatastoreTester)
UsersetsTest tests whether or not the requirements for reading usersets hold for a particular datastore.
func WatchCancelTest ¶ added in v1.0.0
func WatchCancelTest(t *testing.T, tester DatastoreTester)
WatchCancelTest tests whether or not the requirements for cancelling watches hold for a particular datastore.
func WatchTest ¶ added in v1.0.0
func WatchTest(t *testing.T, tester DatastoreTester)
WatchTest tests whether or not the requirements for watching changes hold for a particular datastore.
func WritePreconditionsTest ¶ added in v1.0.0
func WritePreconditionsTest(t *testing.T, tester DatastoreTester)
WritePreconditionsTest tests whether or not the requirements for checking preconditions via WriteTuples hold for a particular datastore.
Types ¶
type DatastoreTester ¶
type DatastoreTester interface { // New creates a new datastore instance for a single test. New(revisionFuzzingTimedelta, gcWindow time.Duration, watchBufferLength uint16) (datastore.Datastore, error) }
DatastoreTester provides a generic datastore suite a means of initializing a particular datastore.