Documentation ¶
Index ¶
- type ExpectedResponse
- type GofusTestKit
- func (g *GofusTestKit) AssertGetRequest(t *testing.T, path string, expectedResponse ExpectedResponse)
- func (g *GofusTestKit) AssertPatchRequest(t *testing.T, path string, body interface{}, expectedResponse ExpectedResponse)
- func (g *GofusTestKit) AssertPostRequest(t *testing.T, path string, body interface{}, expectedResponse ExpectedResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpectedResponse ¶
type ExpectedResponse struct { StatusCode int Body interface{} }
type GofusTestKit ¶
type GofusTestKit struct {
// contains filtered or unexported fields
}
func NewGofusTestKit ¶
func NewGofusTestKit() GofusTestKit
func (*GofusTestKit) AssertGetRequest ¶
func (g *GofusTestKit) AssertGetRequest(t *testing.T, path string, expectedResponse ExpectedResponse)
func (*GofusTestKit) AssertPatchRequest ¶
func (g *GofusTestKit) AssertPatchRequest(t *testing.T, path string, body interface{}, expectedResponse ExpectedResponse)
func (*GofusTestKit) AssertPostRequest ¶
func (g *GofusTestKit) AssertPostRequest(t *testing.T, path string, body interface{}, expectedResponse ExpectedResponse)
Click to show internal directories.
Click to hide internal directories.