helpers

package
v0.0.0-...-fb356ce Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 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

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

type FakeResponse struct {
	Body       string
	StatusCode int
}

type Request

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