Documentation ¶
Index ¶
- type ApiFeature
- func (a *ApiFeature) ClearDB(*godog.Scenario) error
- func (a *ApiFeature) DoLogin() error
- func (a *ApiFeature) DoRegister() error
- func (a *ApiFeature) IRequestTo(method, endpoint string) (err error)
- func (a *ApiFeature) IRequestToWithPayload(method, endpoint string, payload *godog.DocString) (err error)
- func (a *ApiFeature) MakeRequest(req *http.Request) (err error)
- func (a *ApiFeature) MakeRequestAuth(req *http.Request)
- func (a *ApiFeature) ResetResponse(*godog.Scenario)
- func (a *ApiFeature) TheResponseMatchJSON(body *godog.DocString) (err error)
- func (a *ApiFeature) TheResponseShouldContain(body *godog.DocString) (err error)
- func (a *ApiFeature) TheStatusCodeShouldBe(code int) error
- func (a *ApiFeature) ThereAreAny(tableName string, data *godog.Table) error
- func (a *ApiFeature) ThereAreHeaders(data *godog.Table)
- func (a *ApiFeature) ThereIsUserLogged(usrID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiFeature ¶
type ApiFeature struct { BaseURL string Response *httptest.ResponseRecorder Token string Headers map[string]string }
func (*ApiFeature) DoLogin ¶
func (a *ApiFeature) DoLogin() error
func (*ApiFeature) DoRegister ¶
func (a *ApiFeature) DoRegister() error
func (*ApiFeature) IRequestTo ¶
func (a *ApiFeature) IRequestTo(method, endpoint string) (err error)
func (*ApiFeature) IRequestToWithPayload ¶
func (a *ApiFeature) IRequestToWithPayload(method, endpoint string, payload *godog.DocString) (err error)
func (*ApiFeature) MakeRequest ¶
func (a *ApiFeature) MakeRequest(req *http.Request) (err error)
func (*ApiFeature) MakeRequestAuth ¶
func (a *ApiFeature) MakeRequestAuth(req *http.Request)
func (*ApiFeature) ResetResponse ¶
func (a *ApiFeature) ResetResponse(*godog.Scenario)
func (*ApiFeature) TheResponseMatchJSON ¶
func (a *ApiFeature) TheResponseMatchJSON(body *godog.DocString) (err error)
func (*ApiFeature) TheResponseShouldContain ¶
func (a *ApiFeature) TheResponseShouldContain(body *godog.DocString) (err error)
func (*ApiFeature) TheStatusCodeShouldBe ¶
func (a *ApiFeature) TheStatusCodeShouldBe(code int) error
func (*ApiFeature) ThereAreAny ¶
func (a *ApiFeature) ThereAreAny(tableName string, data *godog.Table) error
func (*ApiFeature) ThereAreHeaders ¶
func (a *ApiFeature) ThereAreHeaders(data *godog.Table)
func (*ApiFeature) ThereIsUserLogged ¶
func (a *ApiFeature) ThereIsUserLogged(usrID string) error
Click to show internal directories.
Click to hide internal directories.