package suite
import "github.com/dotcloud/docker/internal/test/suite"
Package suite is a simplified version of testify's suite package which has unnecessary dependencies. Please remove this package whenever possible.
Index ¶
- Variables
- func Run(ctx context.Context, t *testing.T, suite interface{})
- type SetupAllSuite
- type SetupTestSuite
- type TearDownAllSuite
- type TearDownTestSuite
- type TimeoutTestSuite
Variables ¶
TimeoutFlag is the flag to set a per-test timeout when running tests. Defaults to `-timeout`.
Functions ¶
func Run ¶
Run takes a testing suite and runs all of the tests attached to it.
Types ¶
type SetupAllSuite ¶
SetupAllSuite has a SetupSuite method, which will run before the tests in the suite are run.
type SetupTestSuite ¶
SetupTestSuite has a SetupTest method, which will run before each test in the suite.
type TearDownAllSuite ¶
TearDownAllSuite has a TearDownSuite method, which will run after all the tests in the suite have been run.
type TearDownTestSuite ¶
TearDownTestSuite has a TearDownTest method, which will run after each test in the suite.
type TimeoutTestSuite ¶
type TimeoutTestSuite interface {
OnTimeout()
}
TimeoutTestSuite has a OnTimeout method, which will run after a single test times out after a period specified by -timeout flag.
Source Files ¶
- Version
- v28.1.1+incompatible (latest)
- Published
- Apr 18, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 2 hours ago –
Tools for package owners.