Documentation ¶ Index ¶ Constants func It(ts *testing.T, name string, fn func(t *testing.T)) func WithHttpMock(ts *testing.T, name string, mock HttpMock, fn func(tt *testing.T, url string)) type HttpMock func (hc HttpMock) IsHTML() bool Constants ¶ View Source const ( JSON = "application/json" HTML = "text/html" ) Variables ¶ This section is empty. Functions ¶ func It ¶ func It(ts *testing.T, name string, fn func(t *testing.T)) func WithHttpMock ¶ func WithHttpMock(ts *testing.T, name string, mock HttpMock, fn func(tt *testing.T, url string)) Types ¶ type HttpMock ¶ type HttpMock struct { ContentType string StatusCode int Data string } func (HttpMock) IsHTML ¶ func (hc HttpMock) IsHTML() bool Source Files ¶ View all Source files http_mock.gotestify.go Directories ¶ Show internal Expand all Path Synopsis assert httptest Click to show internal directories. Click to hide internal directories.