Versions in this module Expand all Collapse all v0 v0.1.0 Mar 26, 2020 Changes in this version + var ErrMissingCheckFunc = errors.New("missing check func") + func ContextWithData(ctx context.Context, data map[string]interface{}) context.Context + func ContextWithDataID(ctx context.Context, id string, val interface{}) error + func ContextWithOptionalDataID(ctx context.Context, id string, val interface{}) error + func DataFromContext(ctx context.Context) map[string]interface + func DataIDFromContext(ctx context.Context, id string) interface + type BodyCustomChecker struct + CheckBody BodyCustomCheckerFunc + func (c *BodyCustomChecker) Check(ctx context.Context, response *http.Response) error + type BodyCustomCheckerFunc func([]byte) error + type BodyEqualChecker struct + Value string + func (c *BodyEqualChecker) Check(ctx context.Context, response *http.Response) error + type BodyJSONChecker struct + Value interface{} + func (c *BodyJSONChecker) Check(ctx context.Context, response *http.Response) error + type BodyJSONQueryEqualChecker struct + DataID string + NullValue bool + Query string + Value interface{} + func (c *BodyJSONQueryEqualChecker) Check(ctx context.Context, response *http.Response) error + type BodyJSONQueryExistsChecker struct + DataID string + Query string + func (c *BodyJSONQueryExistsChecker) Check(ctx context.Context, response *http.Response) error + type BodyJSONQueryRegexMatchChecker struct + DataIDs map[int]string + Query string + Regexp *regexp.Regexp + func (c *BodyJSONQueryRegexMatchChecker) Check(ctx context.Context, response *http.Response) error + type Checker interface + Check func(ctx context.Context, response *http.Response) error + type DataEqualChecker struct + DataID string + Value interface{} + func (c *DataEqualChecker) Check(ctx context.Context, response *http.Response) error + type JSONQueryValueMissingError struct + Query string + func (e *JSONQueryValueMissingError) Error() string + type StatusCodeEqualChecker struct + Value int + func (c *StatusCodeEqualChecker) Check(ctx context.Context, response *http.Response) error + type UnexpectedDataValueError struct + Actual interface{} + DataID string + Expected interface{} + func (e *UnexpectedDataValueError) Error() string + type UnexpectedJSONBodyError struct + Actual interface{} + Expected interface{} + func (e *UnexpectedJSONBodyError) Error() string + type UnexpectedJSONQueryRegexValueError struct + Actual string + Pattern string + Query string + func (e *UnexpectedJSONQueryRegexValueError) Error() string + type UnexpectedJSONQueryValueError struct + Actual interface{} + Expected interface{} + Query string + func (e *UnexpectedJSONQueryValueError) Error() string + type UnexpectedStatusCode struct + Actual int + Expected int + func (e *UnexpectedStatusCode) Error() string + type UnexpectedValueError struct + Actual string + Expected string + func (e *UnexpectedValueError) Error() string