Documentation
¶
Overview ¶
Package test provides library functions for testing the MicroDB system.
Package test provides library functions for testing MicroDB system.
Package test provides library functions for testing the MicroDB system.
Index ¶
- Variables
- func UUID() string
- type Container
- func NATS(pool *dockertest.Pool, network *dockertest.Network, clusterID string) (Container, error)
- func Publisher(pool *dockertest.Pool, network *dockertest.Network, ...) (Container, error)
- func Querier(pool *dockertest.Pool, network *dockertest.Network, ...) (Container, error)
- func TestDB(pool *dockertest.Pool, network *dockertest.Network, password, database string) (Container, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TestTableName represents the table name for the test table. TestTableName = tableNameTest // TestSchemaOption represents option used for creating a test table origin. TestSchemaOption = microdb.WithSchemaStrings( tableNameTest, microdb.DataOriginTypeMySQL, testOGTableQuery, testLocalTableQuery, testInsertQuery, ) )
nolint // Allow globals for easy use.
Functions ¶
Types ¶
type Container ¶
Container represents a container resource.
func Publisher ¶
func Publisher( pool *dockertest.Pool, network *dockertest.Network, natsHost, natsPort, natsClusterID, natsClientID, mysqlHost, mysqlPort, mysqlUser, mysqlPassword, mysqlDatabase, mysqlTable string) (Container, error)
Publisher starts a publisher in docker container. nolint // Allow duplicate statements with querier.
func Querier ¶
func Querier( pool *dockertest.Pool, network *dockertest.Network, natsHost, natsPort, natsClusterID, natsClientID, mysqlHost, mysqlPort, mysqlUser, mysqlPassword, mysqlDatabase, mysqlTable string) (Container, error)
Querier starts a querier in docker container. nolint // Allow duplicate statements with publisher.
Click to show internal directories.
Click to hide internal directories.