Documentation ¶
Index ¶
- func GetFileName() string
- func GetFunctionName() string
- func GetMongo(ctx iface.OrdaContext, dbName string) (*mongodb.RepositoryMongo, errors.OrdaError)
- func InitTestDBCollection(t *testing.T, dbName string) (*mongodb.RepositoryMongo, iface.OrdaContext, int32)
- func NewTestManagers(ctx iface.OrdaContext, dbName string) (*managers.Managers, errors.OrdaError)
- func NewTestMongoDBConfig(dbName string) *mongodb.Config
- func NewTestOrdaClientConfig(collectionName string, syncType model.SyncType) *orda.ClientConfig
- func NewTestOrdaServerConfig(dbName string) *managers.OrdaServerConfig
- func WaitTimeout(wg *sync.WaitGroup, timeout time.Duration) bool
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 ¶
func GetMongo(ctx iface.OrdaContext, dbName string) (*mongodb.RepositoryMongo, errors.OrdaError)
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 ¶
NewTestManagers creates a new Managers for Test
func NewTestMongoDBConfig ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.