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 int, 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 ¶
type FakeHandler struct {
// contains filtered or unexported fields
}
func (*FakeHandler) GetRequestForCall ¶
func (h *FakeHandler) GetRequestForCall(call int) Request
func (*FakeHandler) Handle ¶
func (h *FakeHandler) Handle(w http.ResponseWriter, req *http.Request)
func (*FakeHandler) RequestsReceived ¶
func (h *FakeHandler) RequestsReceived() int
func (*FakeHandler) RespondsOnCall ¶
func (h *FakeHandler) RespondsOnCall(call int, statusCode int, body string)
func (*FakeHandler) RespondsWith ¶
func (h *FakeHandler) RespondsWith(statusCode int, body string)
func (*FakeHandler) WithQueryParams ¶
func (h *FakeHandler) WithQueryParams(params ...string) *FakeHandler
type FakeResponse ¶
Click to show internal directories.
Click to hide internal directories.