helpers

package
v0.34.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartBinaryWithParams

func StartBinaryWithParams(binaryPath string, params []string) *gexec.Session

func WriteConfig

func WriteConfig(config []byte, dir string) string

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 int, 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

type FakeResponse struct {
	Body       string
	StatusCode int
}

type Request added in v0.28.0

type Request struct {
	Body string
	URL  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL