integration

package
v0.0.0-...-cc9b1f3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileName

func GetFileName() string

GetFileName returns the file name which calls this function.

func GetFunctionName

func GetFunctionName() string

GetFunctionName returns the function name which calls this function.

func GetMongo

GetMongo returns an instance of RepositoryMongo for testing.

func InitTestDBCollection

func InitTestDBCollection(t *testing.T, dbName string) (*mongodb.RepositoryMongo, iface.OrdaContext, int32)

InitTestDBCollection initializes db collection for testing

func NewTestManagers

func NewTestManagers(ctx iface.OrdaContext, dbName string) (*managers.Managers, errors.OrdaError)

NewTestManagers creates a new Managers for Test

func NewTestMongoDBConfig

func NewTestMongoDBConfig(dbName string) *mongodb.Config

NewTestMongoDBConfig creates a new MongoDBConfig for Test

func NewTestOrdaClientConfig

func NewTestOrdaClientConfig(collectionName string, syncType model.SyncType) *orda.ClientConfig

NewTestOrdaClientConfig generates an OrdaClientConfig for testing.

func NewTestOrdaServerConfig

func NewTestOrdaServerConfig(dbName string) *managers.OrdaServerConfig

NewTestOrdaServerConfig generates an OrdaServerConfig for testing.

func WaitTimeout

func WaitTimeout(wg *sync.WaitGroup, timeout time.Duration) bool

WaitTimeout waits for timeout of the WaitGroup during the specified duration

Types

This section is empty.

Jump to

Keyboard shortcuts

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