Documentation ¶
Index ¶
- func DeleteBodyFields(ctx context.Context, bodyParams Params, t *godog.Table) (interface{}, error)
- func DeleteResponseFields(ctx context.Context, bodyParams Params, t *godog.Table) (interface{}, error)
- func FindValueByCode(dataStruct []map[string]interface{}, code, param string) (interface{}, error)
- func GetBody(bodyParams Params) (interface{}, error)
- func GetParam(bodyParams Params, param string) (interface{}, error)
- func JSONEquals(expected, current interface{}) bool
- func LoadData(file string) ([]byte, error)
- func ModifyBody(ctx context.Context, bodyParams Params, t *godog.Table) (interface{}, error)
- func ModifyResponse(ctx context.Context, bodyParams Params, t *godog.Table) (interface{}, error)
- func UnmarshalData(data []byte) ([]map[string]interface{}, error)
- func WriteMultipartBodyFields(ctx context.Context, w *multipart.Writer, t *godog.Table) error
- func WriteMultipartBodyFile(w *multipart.Writer, fieldName, file string) error
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteBodyFields ¶
func DeleteBodyFields( ctx context.Context, bodyParams Params, t *godog.Table, ) (interface{}, error)
DeleteBodyFields Returns body from schema file with code deleting fields.
func DeleteResponseFields ¶
func DeleteResponseFields( ctx context.Context, bodyParams Params, t *godog.Table, ) (interface{}, error)
DeleteResponseFields Returns response from schema file without some params.
func FindValueByCode ¶
FindValueByCode Find value by code and param from dataStruct
func JSONEquals ¶
func JSONEquals(expected, current interface{}) bool
JSONEquals Check if unmarshalled JSON maps are equal
func ModifyBody ¶
ModifyBody Returns body from schema file with code modifying values.
func ModifyResponse ¶
ModifyResponse Returns modified response from schema file
func UnmarshalData ¶
UnmarshalData Unmarshal bytes to json map struct
func WriteMultipartBodyFields ¶ added in v0.18.0
WriteMultipartBodyFields Writes all multipart body fields.
Types ¶
Click to show internal directories.
Click to hide internal directories.