Documentation ¶
Index ¶
- func AssertHTMLResponse(t *testing.T, fileName string, actual string)
- func AssertJSONResponse(t *testing.T, fileName string, actual string)
- func GetGoldenFilePath(filePath string) string
- type HTTPTestCase
- type HTTPTestSuite
- type RequestBody
- type RequestBodyFromFile
- type RequestContext
- type RequestOption
- type RequestParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGoldenFilePath ¶
Types ¶
type HTTPTestCase ¶
type HTTPTestSuite ¶
type HTTPTestSuite struct{}
func (*HTTPTestSuite) DoRequest ¶
func (s *HTTPTestSuite) DoRequest( t *testing.T, handler internalerrors.ErrorAwareHTTPHandler, opts ...RequestOption, ) (*http.Response, []byte)
func (*HTTPTestSuite) RunHTTPCases ¶
func (s *HTTPTestSuite) RunHTTPCases(t *testing.T, handler internalerrors.ErrorAwareHTTPHandler, cases []HTTPTestCase)
type RequestBody ¶
func (RequestBody) Value ¶
func (r RequestBody) Value() any
type RequestBodyFromFile ¶
type RequestBodyFromFile struct {
FilePath string
}
func (RequestBodyFromFile) Value ¶
func (r RequestBodyFromFile) Value() any
type RequestContext ¶
func (RequestContext) Value ¶
func (r RequestContext) Value() any
type RequestOption ¶
type RequestOption interface {
Value() any
}
type RequestParams ¶
type RequestParams struct {
Params requestParams
}
func (RequestParams) Value ¶
func (r RequestParams) Value() any
Click to show internal directories.
Click to hide internal directories.