Documentation ¶
Index ¶
- func StartBinaryWithParams(binaryPath string, params []string) *gexec.Session
- func WriteConfig(config []byte, dir string) string
- type FakeHandler
- func (h *FakeHandler) GetRequestForCall(call int) Request
- func (h *FakeHandler) Handle(w http.ResponseWriter, req *http.Request)
- func (h *FakeHandler) RequestsReceived() int
- func (h *FakeHandler) RespondsOnCall(call, statusCode int, body string)
- func (h *FakeHandler) RespondsWith(statusCode int, body string)
- func (h *FakeHandler) WithQueryParams(params ...string) *FakeHandler
- type FakeResponse
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartBinaryWithParams ¶
func WriteConfig ¶
Types ¶
type FakeHandler ¶ added in v0.28.0
type FakeHandler struct {
// contains filtered or unexported fields
}
func (*FakeHandler) GetRequestForCall ¶ added in v0.28.0
func (h *FakeHandler) GetRequestForCall(call int) Request
func (*FakeHandler) Handle ¶ added in v0.28.0
func (h *FakeHandler) Handle(w http.ResponseWriter, req *http.Request)
func (*FakeHandler) RequestsReceived ¶ added in v0.29.0
func (h *FakeHandler) RequestsReceived() int
func (*FakeHandler) RespondsOnCall ¶ added in v0.28.0
func (h *FakeHandler) RespondsOnCall(call, statusCode int, body string)
func (*FakeHandler) RespondsWith ¶ added in v0.28.0
func (h *FakeHandler) RespondsWith(statusCode int, body string)
func (*FakeHandler) WithQueryParams ¶ added in v0.28.0
func (h *FakeHandler) WithQueryParams(params ...string) *FakeHandler
type FakeResponse ¶ added in v0.28.0
Click to show internal directories.
Click to hide internal directories.