Documentation ¶ Overview ¶ Package test_setup implements Setup and Teardown methods to be used in tests. Index ¶ func RunTests(t *testing.T, x Testable) type Testable Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func RunTests ¶ func RunTests(t *testing.T, x Testable) RunTests runs all "Test*" functions that are member of x as subtests of the current test. Setup is run before the test function and Teardown is run after each test. x must extend Testable interface by implementing Setup and TearDown methods. Types ¶ type Testable ¶ type Testable interface { Setup(*testing.T) Teardown(*testing.T) } Testable defines Tester's methods for use in this package. Source Files ¶ View all Source files test_setup.go Click to show internal directories. Click to hide internal directories.