Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestHTTPServer ¶
func NewTestHTTPServer(tb testing.TB, options ...TestHTTPServerOptionFunc) *httptest.Server
Types ¶
type TestHTTPResponseFunc ¶
type TestHTTPResponseFunc func(tb testing.TB, w http.ResponseWriter) error
type TestHTTPRoundTrip ¶
type TestHTTPRoundTrip struct { RequestFunc TestHTTPRequestFunc ResponseFunc TestHTTPResponseFunc }
type TestHTTPServerOptionFunc ¶
type TestHTTPServerOptionFunc func(o *TestHTTPServerOptions)
func WithTestHTTPRoundTrip ¶
func WithTestHTTPRoundTrip(reqFunc TestHTTPRequestFunc, responseFunc TestHTTPResponseFunc) TestHTTPServerOptionFunc
type TestHTTPServerOptions ¶
type TestHTTPServerOptions struct {
RoundtripsStack []TestHTTPRoundTrip
}
func DefaultTestHTTPServerOptions ¶
func DefaultTestHTTPServerOptions() TestHTTPServerOptions
Click to show internal directories.
Click to hide internal directories.