Versions in this module Expand all Collapse all v0 v0.1.1 May 9, 2020 v0.1.0 May 9, 2020 Changes in this version + type TestHelper struct + func New(t *testing.T) *TestHelper + func (h *TestHelper) CreateServer(path string, response string) (*httptest.Server, func()) + func (h *TestHelper) CreateServerWithError(path string, response string, errorCode int) (*httptest.Server, func()) + func (h *TestHelper) CreateServerWithHandler(path string, response string, handler func(http.ResponseWriter, *http.Request)) (*httptest.Server, func()) + func (h *TestHelper) GetJSON(obj interface{}) string + func (h *TestHelper) GetObject(data string, dataType interface{}) interface{} + func (h *TestHelper) LoadData(filename string) string + func (h *TestHelper) ReadResponse(resp http.Response) string + func (h *TestHelper) SetOSEnvVar(name, value string) func()