Documentation ¶
Index ¶
- type Suite
- func (s *Suite) BenchmarkSetUp(BeforeEachBenchmarkFunc func(*testing.B)) *Suite
- func (s *Suite) BenchmarkTearDown(AfterEachBenchmarkFunc func(*testing.B)) *Suite
- func (s *Suite) ExampleSetUp(BeforeEachExampleFunc func()) *Suite
- func (s *Suite) ExampleTearDown(AfterEachExampleFunc func()) *Suite
- func (s *Suite) Run(m *testing.M) int
- func (s *Suite) TestSetUp(BeforeEachTestFunc func(*testing.T)) *Suite
- func (s *Suite) TestTearDown(AfterEachTestFunc func(*testing.T)) *Suite
- type TestDeps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Suite ¶
type Suite struct { Name string // contains filtered or unexported fields }
Suite is a builder type for wrapping test cases with SetUp and TearDown methods
func (*Suite) BenchmarkSetUp ¶
BenchmarkSetUp adds a Set Up method for Benchmarks
func (*Suite) BenchmarkTearDown ¶
BenchmarkTearDown adds a Tear Down method for Benchmarks
func (*Suite) ExampleSetUp ¶
ExampleSetUp adds a Set Up method for Examples
func (*Suite) ExampleTearDown ¶
ExampleTearDown adds a Tear Down method for Examples
func (*Suite) Run ¶
Run takes in a *testing.M object, instruments it according to the builder rules, and runs it. The return integer is the result of the instrumented M's .Run() method.
type TestDeps ¶
type TestDeps struct{}
TestDeps is an implementation of the testing.testDeps interface, This is a copy of testing/internal/testdeps/deps.go
func (TestDeps) StopCPUProfile ¶
func (TestDeps) StopCPUProfile()
Click to show internal directories.
Click to hide internal directories.