testcases

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 18 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 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 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 RunFindDeactivateCandidates added in v0.4.6

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

RunFindDeactivateCandidates runs the FindDeactivateCandidates 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 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 RunFindProjectInfoByNameTest

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

RunFindProjectInfoByNameTest runs the FindProjectInfoByName 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