Documentation ¶
Overview ¶
Package testcases contains testcases for database. It is used by database implementations to test their own implementations with the same testcases.
Index ¶
- func AssertKeys(t *testing.T, expectedKeys []key.Key, infos []*database.DocInfo)
- func RunActivateClientDeactivateClientTest(t *testing.T, db database.Database, projectID types.ID)
- func RunCreateChangeInfosTest(t *testing.T, db database.Database, projectID types.ID)
- func RunFindChangeInfosBetweenServerSeqsTest(t *testing.T, db database.Database, projectID types.ID)
- func RunFindChangesBetweenServerSeqsTest(t *testing.T, db database.Database, projectID types.ID)
- func RunFindClosestSnapshotInfoTest(t *testing.T, db database.Database, projectID types.ID)
- func RunFindDeactivateCandidatesPerProjectTest(t *testing.T, db database.Database)
- func RunFindDocInfoTest(t *testing.T, db database.Database, projectID types.ID)
- func RunFindDocInfosByKeysTest(t *testing.T, db database.Database, projectID types.ID)
- func RunFindDocInfosByPagingTest(t *testing.T, db database.Database, projectID types.ID)
- func RunFindDocInfosByQueryTest(t *testing.T, db database.Database, projectID types.ID)
- func RunFindNextNCyclingProjectInfosTest(t *testing.T, db database.Database)
- func RunFindProjectInfoByNameTest(t *testing.T, db database.Database)
- func RunFindProjectInfoBySecretKeyTest(t *testing.T, db database.Database)
- func RunFindUserInfoByIDTest(t *testing.T, db database.Database)
- func RunFindUserInfoByNameTest(t *testing.T, db database.Database)
- func RunIsDocumentAttachedTest(t *testing.T, db database.Database, projectID types.ID)
- func RunListUserInfosTest(t *testing.T, db database.Database)
- func RunUpdateClientInfoAfterPushPullTest(t *testing.T, db database.Database, projectID types.ID)
- func RunUpdateProjectInfoTest(t *testing.T, db database.Database)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertKeys ¶ added in v0.4.14
AssertKeys checks the equivalence between the provided expectedKeys and the keys in the given infos.
func RunActivateClientDeactivateClientTest ¶
RunActivateClientDeactivateClientTest runs the ActivateClient and DeactivateClient tests for the given db.
func RunCreateChangeInfosTest ¶
RunCreateChangeInfosTest runs the CreateChangeInfos tests for the given db.
func RunFindChangeInfosBetweenServerSeqsTest ¶ added in v0.5.0
func RunFindChangeInfosBetweenServerSeqsTest( t *testing.T, db database.Database, projectID types.ID, )
RunFindChangeInfosBetweenServerSeqsTest runs the FindChangeInfosBetweenServerSeqs test for the given db.
func RunFindChangesBetweenServerSeqsTest ¶
RunFindChangesBetweenServerSeqsTest runs the FindChangesBetweenServerSeqs test for the given db.
func RunFindClosestSnapshotInfoTest ¶
RunFindClosestSnapshotInfoTest runs the FindClosestSnapshotInfo test for the given db.
func RunFindDeactivateCandidatesPerProjectTest ¶ added in v0.4.13
RunFindDeactivateCandidatesPerProjectTest runs the FindDeactivateCandidatesPerProject tests for the given db.
func RunFindDocInfoTest ¶
RunFindDocInfoTest runs the FindDocInfo test for the given db.
func RunFindDocInfosByKeysTest ¶ added in v0.4.28
RunFindDocInfosByKeysTest runs the FindDocInfosByKeys test for the given db.
func RunFindDocInfosByPagingTest ¶
RunFindDocInfosByPagingTest runs the FindDocInfosByPaging tests for the given db.
func RunFindDocInfosByQueryTest ¶
RunFindDocInfosByQueryTest runs the FindDocInfosByQuery test for the given db.
func RunFindNextNCyclingProjectInfosTest ¶ added in v0.4.13
RunFindNextNCyclingProjectInfosTest runs the FindNextNCyclingProjectInfos tests for the given db.
func RunFindProjectInfoByNameTest ¶
RunFindProjectInfoByNameTest runs the FindProjectInfoByName test for the given db.
func RunFindProjectInfoBySecretKeyTest ¶ added in v0.4.13
RunFindProjectInfoBySecretKeyTest runs the FindProjectInfoBySecretKey test for the given db.
func RunFindUserInfoByIDTest ¶ added in v0.4.13
RunFindUserInfoByIDTest runs the FindUserInfoByID test for the given db.
func RunFindUserInfoByNameTest ¶ added in v0.4.14
RunFindUserInfoByNameTest runs the FindUserInfoByName test for the given db.
func RunIsDocumentAttachedTest ¶
RunIsDocumentAttachedTest runs the IsDocumentAttached tests for the given db.
func RunListUserInfosTest ¶
RunListUserInfosTest runs the ListUserInfos test for the given db.
func RunUpdateClientInfoAfterPushPullTest ¶
RunUpdateClientInfoAfterPushPullTest runs the UpdateClientInfoAfterPushPull tests for the given db.
Types ¶
This section is empty.