docker: github.com/docker/docker/internal/test/suite Index | Files

package suite

import "github.com/docker/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

Package Files

interfaces.go suite.go

Variables

var TimeoutFlag = flag.Duration("timeout", 0, "DO NOT USE")

TimeoutFlag is the flag to set a per-test timeout when running tests. Defaults to `-timeout`.

func Run Uses

func Run(t *testing.T, suite interface{})

Run takes a testing suite and runs all of the tests attached to it.

type SetupAllSuite Uses

type SetupAllSuite interface {
    SetUpSuite(t *testing.T)
}

SetupAllSuite has a SetupSuite method, which will run before the tests in the suite are run.

type SetupTestSuite Uses

type SetupTestSuite interface {
    SetUpTest(t *testing.T)
}

SetupTestSuite has a SetupTest method, which will run before each test in the suite.

type TearDownAllSuite Uses

type TearDownAllSuite interface {
    TearDownSuite(t *testing.T)
}

TearDownAllSuite has a TearDownSuite method, which will run after all the tests in the suite have been run.

type TearDownTestSuite Uses

type TearDownTestSuite interface {
    TearDownTest(t *testing.T)
}

TearDownTestSuite has a TearDownTest method, which will run after each test in the suite.

type TimeoutTestSuite Uses

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.

Package suite imports 5 packages (graph). Updated 2019-11-09. Refresh now. Tools for package owners.