Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeTestResult ¶
type FakeTestResult struct { Errors []string Status FakeTestStatus Panic interface{} // non-nil if we panicked }
FakeTestResult contains the result of using a fake TestingT.
func WithFakeTestingT ¶
func WithFakeTestingT(f func(require.TestingT)) *FakeTestResult
WithFakeTestingT yields a TestingT that records its results and exposes them in FakeTestResult.
type FakeTestStatus ¶
type FakeTestStatus int
FakeTestStatus states how a fake TestingT finished.
const ( // Finished is the default. This indicates that it was run to completion // but may have recorded errors using Errorf. Finished FakeTestStatus = iota // Fatal indicates that the TestingT aborted early with a FailNow. Fatal // Panicked indicates that the TestingT aborted with a panic. Panicked )
func (FakeTestStatus) String ¶
func (f FakeTestStatus) String() string
Click to show internal directories.
Click to hide internal directories.