Documentation
¶
Overview ¶
Package testutil provides test helpers for Broth applications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertStatus ¶
AssertStatus fails the test if the response status code does not match expected.
func NewTestServer ¶
NewTestServer creates an httptest.Server for the given handler and registers cleanup to close it when the test finishes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.