Documentation ¶
Index ¶
- func All(t *testing.T, tester DatastoreTester)
- func AllExceptWatch(t *testing.T, tester DatastoreTester)
- func CaveatNotFoundTest(t *testing.T, tester DatastoreTester)
- func CaveatSnapshotReadsTest(t *testing.T, tester DatastoreTester)
- func CaveatedRelationshipFilterTest(t *testing.T, tester DatastoreTester)
- func CaveatedRelationshipWatchTest(t *testing.T, tester DatastoreTester)
- func ConcurrentWriteSerializationTest(t *testing.T, tester DatastoreTester)
- func CreateAlreadyExistingTest(t *testing.T, tester DatastoreTester)
- func CursorErrorsTest(t *testing.T, tester DatastoreTester)
- func DeleteAlreadyDeletedTest(t *testing.T, tester DatastoreTester)
- func DeleteNotExistantTest(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 LimitTest(t *testing.T, tester DatastoreTester)
- func MultipleReadsInRWTTest(t *testing.T, tester DatastoreTester)
- func NamespaceDeleteTest(t *testing.T, tester DatastoreTester)
- func NamespaceMultiDeleteTest(t *testing.T, tester DatastoreTester)
- func NamespaceNotFoundTest(t *testing.T, tester DatastoreTester)
- func NamespaceWriteTest(t *testing.T, tester DatastoreTester)
- func ObjectIDsTest(t *testing.T, tester DatastoreTester)
- func OrderedLimitTest(t *testing.T, tester DatastoreTester)
- func OrderingTest(t *testing.T, tester DatastoreTester)
- func ResumeTest(t *testing.T, tester DatastoreTester)
- func RevisionGCTest(t *testing.T, tester DatastoreTester)
- func RevisionQuantizationTest(t *testing.T, tester DatastoreTester)
- func RevisionSerializationTest(t *testing.T, tester DatastoreTester)
- func SimpleTest(t *testing.T, tester DatastoreTester)
- func StableNamespaceReadWriteTest(t *testing.T, tester DatastoreTester)
- func StatsTest(t *testing.T, tester DatastoreTester)
- func TouchAlreadyExistingTest(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 WriteCaveatedRelationshipTest(t *testing.T, tester DatastoreTester)
- func WriteDeleteWriteTest(t *testing.T, tester DatastoreTester)
- func WriteReadDeleteCaveatTest(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 AllExceptWatch ¶ added in v1.16.2
func AllExceptWatch(t *testing.T, tester DatastoreTester)
AllExceptWatch runs all generic datastore tests on a DatastoreTester, except those invoking the watch API.
func CaveatNotFoundTest ¶ added in v1.16.2
func CaveatNotFoundTest(t *testing.T, tester DatastoreTester)
CaveatNotFound tests to ensure that an unknown caveat returns the expected error.
func CaveatSnapshotReadsTest ¶ added in v1.14.0
func CaveatSnapshotReadsTest(t *testing.T, tester DatastoreTester)
func CaveatedRelationshipFilterTest ¶ added in v1.14.0
func CaveatedRelationshipFilterTest(t *testing.T, tester DatastoreTester)
func CaveatedRelationshipWatchTest ¶ added in v1.14.0
func CaveatedRelationshipWatchTest(t *testing.T, tester 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 CreateAlreadyExistingTest ¶ added in v1.12.0
func CreateAlreadyExistingTest(t *testing.T, tester DatastoreTester)
CreateAlreadyExistingTest tests creating a relationship twice.
func CursorErrorsTest ¶ added in v1.21.0
func CursorErrorsTest(t *testing.T, tester DatastoreTester)
func DeleteAlreadyDeletedTest ¶ added in v1.12.0
func DeleteAlreadyDeletedTest(t *testing.T, tester DatastoreTester)
DeleteAlreadyDeletedTest tests the deletion of an already-deleted relationship.
func DeleteNotExistantTest ¶ added in v1.12.0
func DeleteNotExistantTest(t *testing.T, tester DatastoreTester)
DeleteNotExistantTest tests the deletion of a non-existant relationship.
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 LimitTest ¶ added in v1.21.0
func LimitTest(t *testing.T, tester DatastoreTester)
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 NamespaceMultiDeleteTest ¶ added in v1.14.0
func NamespaceMultiDeleteTest(t *testing.T, tester DatastoreTester)
func NamespaceNotFoundTest ¶ added in v1.16.2
func NamespaceNotFoundTest(t *testing.T, tester DatastoreTester)
NamespaceNotFoundTest tests to ensure that an unknown namespace returns the expected error.
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 ObjectIDsTest ¶ added in v1.20.0
func ObjectIDsTest(t *testing.T, tester DatastoreTester)
func OrderedLimitTest ¶ added in v1.21.0
func OrderedLimitTest(t *testing.T, tester DatastoreTester)
func OrderingTest ¶ added in v1.21.0
func OrderingTest(t *testing.T, tester DatastoreTester)
func ResumeTest ¶ added in v1.21.0
func ResumeTest(t *testing.T, tester DatastoreTester)
func RevisionGCTest ¶ added in v1.18.0
func RevisionGCTest(t *testing.T, tester DatastoreTester)
RevisionGCTest makes sure revision GC takes place, revisions out-side of the GC window are invalid, and revisions inside the GC window are valid.
func RevisionQuantizationTest ¶
func RevisionQuantizationTest(t *testing.T, tester DatastoreTester)
RevisionQuantizationTest tests whether or not the requirements for revisions hold for a particular datastore.
func RevisionSerializationTest ¶ added in v1.14.0
func RevisionSerializationTest(t *testing.T, tester DatastoreTester)
RevisionSerializationTest tests whether the revisions generated by this datastore can be serialized and sent through the dispatch layer.
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 StableNamespaceReadWriteTest ¶ added in v1.13.0
func StableNamespaceReadWriteTest(t *testing.T, tester DatastoreTester)
StableNamespaceReadWriteTest tests writing a namespace to the datastore and reading it back, ensuring that it does not change in any way and that the deserialized data matches that stored.
func StatsTest ¶
func StatsTest(t *testing.T, tester DatastoreTester)
func TouchAlreadyExistingTest ¶ added in v1.12.0
func TouchAlreadyExistingTest(t *testing.T, tester DatastoreTester)
TouchAlreadyExistingTest tests touching a relationship twice.
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.
func WriteCaveatedRelationshipTest ¶ added in v1.14.0
func WriteCaveatedRelationshipTest(t *testing.T, tester DatastoreTester)
func WriteDeleteWriteTest ¶ added in v1.12.0
func WriteDeleteWriteTest(t *testing.T, tester DatastoreTester)
WriteDeleteWriteTest tests writing a relationship, deleting it, and then writing it again.
func WriteReadDeleteCaveatTest ¶ added in v1.14.0
func WriteReadDeleteCaveatTest(t *testing.T, tester DatastoreTester)
Types ¶
type DatastoreTester ¶
type DatastoreTester interface { // New creates a new datastore instance for a single test. New(revisionQuantization, gcInterval, gcWindow time.Duration, watchBufferLength uint16) (datastore.Datastore, error) }
DatastoreTester provides a generic datastore suite a means of initializing a particular datastore.