Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIScenario ¶
type APIScenario struct { Name string Method string URL string Body io.Reader RequestHeaders map[string]string // Delay adds a delay before checking the expectations usually // to ensure that all fired non-awaited go routines have finished Delay time.Duration // expectations // --- ExpectedStatus int ExpectedContent []string NotExpectedContent []string // test hooks // --- Handler http.Handler }
func (*APIScenario) Test ¶
func (scenario *APIScenario) Test(t *testing.T)
Test executes the test case/scenario.
Click to show internal directories.
Click to hide internal directories.