gest

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 New

func New(name string) *Suite

New begins a new Suite

func (*Suite) BenchmarkSetUp

func (s *Suite) BenchmarkSetUp(BeforeEachBenchmarkFunc func(*testing.B)) *Suite

BenchmarkSetUp adds a Set Up method for Benchmarks

func (*Suite) BenchmarkTearDown

func (s *Suite) BenchmarkTearDown(AfterEachBenchmarkFunc func(*testing.B)) *Suite

BenchmarkTearDown adds a Tear Down method for Benchmarks

func (*Suite) ExampleSetUp

func (s *Suite) ExampleSetUp(BeforeEachExampleFunc func()) *Suite

ExampleSetUp adds a Set Up method for Examples

func (*Suite) ExampleTearDown

func (s *Suite) ExampleTearDown(AfterEachExampleFunc func()) *Suite

ExampleTearDown adds a Tear Down method for Examples

func (*Suite) Run

func (s *Suite) Run(m *testing.M) int

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.

func (*Suite) TestSetUp

func (s *Suite) TestSetUp(BeforeEachTestFunc func(*testing.T)) *Suite

TestSetUp adds a Set Up method for Tests

func (*Suite) TestTearDown

func (s *Suite) TestTearDown(AfterEachTestFunc func(*testing.T)) *Suite

TestTearDown adds a Tear Down method for Tests

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) MatchString

func (TestDeps) MatchString(pat, str string) (result bool, err error)

func (TestDeps) StartCPUProfile

func (TestDeps) StartCPUProfile(w io.Writer) error

func (TestDeps) StopCPUProfile

func (TestDeps) StopCPUProfile()

func (TestDeps) WriteHeapProfile

func (TestDeps) WriteHeapProfile(w io.Writer) error

func (TestDeps) WriteProfileTo

func (TestDeps) WriteProfileTo(name string, w io.Writer, debug int) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL