testcases

package
v0.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package testcases contains testcases for database. It is used by database implementations to test their own implementations with the same testcases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertKeys added in v0.4.14

func AssertKeys(t *testing.T, expectedKeys []key.Key, infos []*database.DocInfo)

AssertKeys checks the equivalence between the provided expectedKeys and the keys in the given infos.

func RunActivateClientDeactivateClientTest

func RunActivateClientDeactivateClientTest(t *testing.T, db database.Database, projectID types.ID)

RunActivateClientDeactivateClientTest runs the ActivateClient and DeactivateClient tests for the given db.

func RunCreateChangeInfosTest

func RunCreateChangeInfosTest(t *testing.T, db database.Database, projectID types.ID)

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

func RunFindChangesBetweenServerSeqsTest(
	t *testing.T,
	db database.Database,
	projectID types.ID,
)

RunFindChangesBetweenServerSeqsTest runs the FindChangesBetweenServerSeqs test for the given db.

func RunFindClosestSnapshotInfoTest

func RunFindClosestSnapshotInfoTest(t *testing.T, db database.Database, projectID types.ID)

RunFindClosestSnapshotInfoTest runs the FindClosestSnapshotInfo test for the given db.

func RunFindDeactivateCandidatesPerProjectTest added in v0.4.13

func RunFindDeactivateCandidatesPerProjectTest(t *testing.T, db database.Database)

RunFindDeactivateCandidatesPerProjectTest runs the FindDeactivateCandidatesPerProject tests for the given db.

func RunFindDocInfoTest

func RunFindDocInfoTest(
	t *testing.T,
	db database.Database,
	projectID types.ID,
)

RunFindDocInfoTest runs the FindDocInfo test for the given db.

func RunFindDocInfosByKeysTest added in v0.4.28

func RunFindDocInfosByKeysTest(
	t *testing.T,
	db database.Database,
	projectID types.ID,
)

RunFindDocInfosByKeysTest runs the FindDocInfosByKeys test for the given db.

func RunFindDocInfosByPagingTest

func RunFindDocInfosByPagingTest(t *testing.T, db database.Database, projectID types.ID)

RunFindDocInfosByPagingTest runs the FindDocInfosByPaging tests for the given db.

func RunFindDocInfosByQueryTest

func RunFindDocInfosByQueryTest(
	t *testing.T,
	db database.Database,
	projectID types.ID,
)

RunFindDocInfosByQueryTest runs the FindDocInfosByQuery test for the given db.

func RunFindNextNCyclingProjectInfosTest added in v0.4.13

func RunFindNextNCyclingProjectInfosTest(t *testing.T, db database.Database)

RunFindNextNCyclingProjectInfosTest runs the FindNextNCyclingProjectInfos tests for the given db.

func RunFindProjectInfoByNameTest

func RunFindProjectInfoByNameTest(
	t *testing.T,
	db database.Database,
)

RunFindProjectInfoByNameTest runs the FindProjectInfoByName test for the given db.

func RunFindProjectInfoBySecretKeyTest added in v0.4.13

func RunFindProjectInfoBySecretKeyTest(
	t *testing.T,
	db database.Database,
)

RunFindProjectInfoBySecretKeyTest runs the FindProjectInfoBySecretKey test for the given db.

func RunFindUserInfoByIDTest added in v0.4.13

func RunFindUserInfoByIDTest(t *testing.T, db database.Database)

RunFindUserInfoByIDTest runs the FindUserInfoByID test for the given db.

func RunFindUserInfoByNameTest added in v0.4.14

func RunFindUserInfoByNameTest(t *testing.T, db database.Database)

RunFindUserInfoByNameTest runs the FindUserInfoByName test for the given db.

func RunIsDocumentAttachedTest

func RunIsDocumentAttachedTest(t *testing.T, db database.Database, projectID types.ID)

RunIsDocumentAttachedTest runs the IsDocumentAttached tests for the given db.

func RunListUserInfosTest

func RunListUserInfosTest(t *testing.T, db database.Database)

RunListUserInfosTest runs the ListUserInfos test for the given db.

func RunUpdateClientInfoAfterPushPullTest

func RunUpdateClientInfoAfterPushPullTest(t *testing.T, db database.Database, projectID types.ID)

RunUpdateClientInfoAfterPushPullTest runs the UpdateClientInfoAfterPushPull tests for the given db.

func RunUpdateProjectInfoTest

func RunUpdateProjectInfoTest(t *testing.T, db database.Database)

RunUpdateProjectInfoTest runs the UpdateProjectInfo tests for the given db.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL