Documentation
¶
Overview ¶
Package fail provides methods to test and verify failing assertions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertFails ¶
AssertFails asserts that the given test function fails the test.
Types ¶
type TestSetup ¶
type TestSetup struct {
// contains filtered or unexported fields
}
TestSetup represents an already set up test environment, which provides a variant on AssertFails that fails the test as normal, but also fails the test if the setup function causes test failures.
func Setup ¶
Setup shares the fake testing.T instance between a setup method and a test method, providing an AssertFails method that fails the test if the setup fails, or if the test method does not.
Source Files
¶
- fail.go
Click to show internal directories.
Click to hide internal directories.