Documentation
¶
Overview ¶
Package eptest binds an embedded PostgreSQL instance to Go tests and suites.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(m *testing.M, setup func(*postgres.EmbeddedPostgres), configs ...postgres.Config) (code int)
Run starts one server for TestMain, calls setup (if non-nil), runs m, and closes the server before returning the exit code. Call os.Exit only on the result. Independent supervision also covers unrecovered panics in test goroutines.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.