Versions in this module Expand all Collapse all v1 v1.0.0 Apr 15, 2020 Changes in this version + type ContextType struct + func NewMockContext(method string, path string, body interface{}, errorsYaml string, t *testing.T, ...) (mc *ContextType, err error) + func (mc *ContextType) AddRequestFunction(method, component, path string, ...) + func (mc *ContextType) AddRequestInterface(method, component, path string, response interface{}) + func (mc *ContextType) AddRequestMap(method, component, path string, response map[string]interface{}) + func (mc *ContextType) AddRequestStatusCode(method, component, path string, statusCode int, response interface{}) + func (mc *ContextType) DecodeResult(output interface{}) (err error) + func (mc *ContextType) GetRequests() map[string]interface{} + func (mc *ContextType) MockRecorder() *httptest.ResponseRecorder + func (mc *ContextType) MockRequest() *http.Request + func (mc *ContextType) MockResponse() *http.Response + func (mc *ContextType) Requester(method string, component string, path string, input interface{}, ...) (err error) + func (mc *ContextType) ResultMap() map[string]interface{} + func (mc *ContextType) SetRequests(requests map[string]interface{}) + type MockClient struct + func (client *MockClient) Do(req *http.Request) (res *http.Response, err error) + type Option func(*ContextType) + func SetConfigMap(configMap map[string]interface{}) Option + func WithClaims(mapClaims jwt.MapClaims) Option