Documentation ¶ Index ¶ func Begin(t *testing.T) (*manager.Profile, context.Context) func End(t *testing.T) func Main(m *testing.M, setup func(*manager.Profile) (func(), error), ...) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Begin ¶ func Begin(t *testing.T) (*manager.Profile, context.Context) Begin returns the shared test manager and a per-test context. func End ¶ func End(t *testing.T) End releases the per-test context created by Begin. func Main ¶ func Main(m *testing.M, setup func(*manager.Profile) (func(), error), opts ...manager.Opt) Main is the test main function for tests. It starts up a container (or connects to an existing database, if GOMEDIA_TEST_DATABASE_URL is set) and runs the tests, providing a manager instance to each test. Types ¶ This section is empty. Source Files ¶ View all Source files test.go Click to show internal directories. Click to hide internal directories.