Test bodies and files
Technical reference of Cuerpos y archivos de prueba.
This API is used in Snapshots.
Symbols
| Symbol | Class | Description |
|---|---|---|
| RequestBodyValue | type | RequestBodyValue defines a public type of API. |
| RequestBodyRaw | type | RequestBodyRaw defines a public type of API. |
| RequestBodyQuery | type | RequestBodyQuery defines a public type of API. |
| RequestBodyFormData | type | RequestBodyFormData defines a public type of API. |
| RequestBodyJSON | type | RequestBodyJSON defines a public type of API. |
| RequestBodyRaw.Encode | func | Codify the body and return content and half type. |
| RequestBodyQuery.Encode | func | Codify the body and return content and half type. |
| RequestBodyFormData.Encode | func | Codify the body and return content and half type. |
| RequestBodyJSON.Encode | func | Codify the body and return content and half type. |
| RequestBody | var | RequestBody it exposes a shared value of the package. |
| RequestBody.Empty | func | It builds an empty body. |
| RequestBody.Raw | func | It builds an untransformed textual body. |
| RequestBody.RawWithType | func | It builds a textual body with an explicit half type. |
| RequestBody.Query | func | Build a body application/x-www-form-urlencoded. |
| RequestBody.FormData | func | Build a body multipart/form-data. |
| RequestBody.JSON | func | It builds a JSON body. |
| ExpectedBodyRule | type | ExpectedBodyRule defines a public type of API. |
| ExpectedHTTPBodyRule | type | ExpectedHTTPBodyRule defines a public type of API. |
| ExpectedBodyEqual | type | ExpectedBodyEqual defines a public type of API. |
| ExpectedBodyNotEqual | type | ExpectedBodyNotEqual defines a public type of API. |
| ExpectedBodyContains | type | ExpectedBodyContains defines a public type of API. |
| ExpectedBodyNotContains | type | ExpectedBodyNotContains defines a public type of API. |
| ExpectedBodySnapshot | type | ExpectedBodySnapshot defines a public type of API. |
| ExpectedBodyJSONEqual | type | ExpectedBodyJSONEqual defines a public type of API. |
| ExpectedBodyJSONNotEqual | type | ExpectedBodyJSONNotEqual defines a public type of API. |
| ExpectedBodyJSONContains | type | ExpectedBodyJSONContains defines a public type of API. |
| ExpectedBodyJSONNotContains | type | ExpectedBodyJSONNotContains defines a public type of API. |
| ExpectedBodyCustom | type | ExpectedBodyCustom defines a public type of API. |
| ExpectedBodyEqual.MatchBody | func | Compare the body with the rule. |
| ExpectedBodyEqual.MatchHTTPBody | func | Compare metadata and HTTP content. |
| ExpectedBodyNotEqual.MatchBody | func | Compare the body with the rule. |
| ExpectedBodyContains.MatchBody | func | Compare the body with the rule. |
| ExpectedBodyNotContains.MatchBody | func | Compare the body with the rule. |
| ExpectedBodySnapshot.MatchBody | func | Compare the body with the rule. |
| ExpectedBodyJSONEqual.MatchBody | func | Compare the body with the rule. |
| ExpectedBodyJSONNotEqual.MatchBody | func | Compare the body with the rule. |
| ExpectedBodyJSONContains.MatchBody | func | Compare the body with the rule. |
| ExpectedBodyJSONNotContains.MatchBody | func | Compare the body with the rule. |
| ExpectedBodyCustom.MatchBody | func | Compare the body with the rule. |
| ExpectedBody | var | ExpectedBody it exposes a shared value of the package. |
| ExpectedBody.Equal | func | It builds a rule of equality. |
| ExpectedBody.NotEqual | func | It builds a rule of inequality. |
| ExpectedBody.Contains | func | It indicates whether a key contains a specific value. |
| ExpectedBody.NotContains | func | It builds a rule of absence. |
| ExpectedBody.Snapshot | func | It builds a snapshot-based rule. |
| ExpectedBody.JSONEqual | func | It builds a JSON equality rule. |
| ExpectedBody.JSONNotEqual | func | It builds a rule of JSON inequality. |
| ExpectedBody.JSONContains | func | It builds a JSON inclusion rule. |
| ExpectedBody.JSONNotContains | func | It builds a JSON rule of exclusion. |
| ExpectedBody.Custom | func | It builds a composite rule. |
RequestBodyValue
Declaration:
type RequestBodyValue interface {
isRequestBody()
Encode() ([]byte, string, error)
} RequestBodyValue defines a public type of API.
RequestBodyRaw
Declaration:
type RequestBodyRaw struct {
Content string
ContentTypeValue string
} RequestBodyRaw defines a public type of API.
Fields
| Field | Type | Description |
|---|---|---|
Content | string | Associated content. |
ContentTypeValue | string | Associated value. |
RequestBodyQuery
Declaration:
type RequestBodyQuery struct {
Values map[string]string
} RequestBodyQuery defines a public type of API.
Fields
| Field | Type | Description |
|---|---|---|
Values | map[string]string | Associated value. |
RequestBodyFormData
Declaration:
type RequestBodyFormData struct {
Values FormData
} RequestBodyFormData defines a public type of API.
Fields
| Field | Type | Description |
|---|---|---|
Values | FormData | Associated value. |
RequestBodyJSON
Declaration:
type RequestBodyJSON struct {
Value any
} RequestBodyJSON defines a public type of API.
Fields
| Field | Type | Description |
|---|---|---|
Value | any | Value stored. |
RequestBodyRaw.Encode
Declaration:
func (b RequestBodyRaw) Encode() ([]byte, string, error) Codify the body and return content and half type.
Returns
| Return | Type | Description |
|---|---|---|
value | []byte | Result collection; can be nil when there are no values. |
value | string | Textual value produced by the operation; its zero value is an empty string. |
err | error | nil if the operation ends correctly; otherwise, the error produced. |
Behavior
The operation returns an error when it cannot complete the above contract.
Errors
Encode returns an error when the arguments, the status of the receiver or the underlying operation make it impossible to complete the call.
Usage syntax
value, value, err := requestBodyRaw.Encode() RequestBodyQuery.Encode
Declaration:
func (b RequestBodyQuery) Encode() ([]byte, string, error) Codify the body and return content and half type.
Returns
| Return | Type | Description |
|---|---|---|
value | []byte | Result collection; can be nil when there are no values. |
value | string | Textual value produced by the operation; its zero value is an empty string. |
err | error | nil if the operation ends correctly; otherwise, the error produced. |
Behavior
The operation returns an error when it cannot complete the above contract.
Errors
Encode returns an error when the arguments, the status of the receiver or the underlying operation make it impossible to complete the call.
Usage syntax
value, value, err := requestBodyQuery.Encode() RequestBodyFormData.Encode
Declaration:
func (b RequestBodyFormData) Encode() ([]byte, string, error) Codify the body and return content and half type.
Returns
| Return | Type | Description |
|---|---|---|
value | []byte | Result collection; can be nil when there are no values. |
value | string | Textual value produced by the operation; its zero value is an empty string. |
err | error | nil if the operation ends correctly; otherwise, the error produced. |
Behavior
The operation returns an error when it cannot complete the above contract.
Errors
Encode returns an error when the arguments, the status of the receiver or the underlying operation make it impossible to complete the call.
Usage syntax
value, value, err := requestBodyFormData.Encode() RequestBodyJSON.Encode
Declaration:
func (b RequestBodyJSON) Encode() ([]byte, string, error) Codify the body and return content and half type.
Returns
| Return | Type | Description |
|---|---|---|
value | []byte | Result collection; can be nil when there are no values. |
value | string | Textual value produced by the operation; its zero value is an empty string. |
err | error | nil if the operation ends correctly; otherwise, the error produced. |
Behavior
The operation returns an error when it cannot complete the above contract.
Errors
Encode returns an error when the arguments, the status of the receiver or the underlying operation make it impossible to complete the call.
Usage syntax
value, value, err := requestBodyJSON.Encode() RequestBody
Declaration:
var RequestBody requestBodyFactory RequestBody it exposes a shared value of the package.
RequestBody.Empty
Declaration:
func (requestBodyFactory) Empty() RequestBodyRaw { return RequestBodyRaw It builds an empty body.
Returns
| Return | Type | Description |
|---|---|---|
RequestBodyRaw { return | RequestBodyRaw | Type value RequestBodyRaw produced by the operation. |
Usage syntax
RequestBodyRaw { return := test.RequestBody.Empty() RequestBody.Raw
Declaration:
func (requestBodyFactory) Raw(content string) RequestBodyRaw { return RequestBodyRaw It builds an untransformed textual body.
Parameters
| Parameter | Type | Description |
|---|---|---|
content | string | Type value string required by the operation. |
Returns
| Return | Type | Description |
|---|---|---|
RequestBodyRaw { return | RequestBodyRaw | Type value RequestBodyRaw produced by the operation. |
Usage syntax
RequestBodyRaw { return := test.RequestBody.Raw(value) RequestBody.RawWithType
Declaration:
func (requestBodyFactory) RawWithType(content, contentType string) RequestBodyRaw It builds a textual body with an explicit half type.
Parameters
| Parameter | Type | Description |
|---|---|---|
| `` | content | Type value content required by the operation. |
contentType | string | MIME type of content. |
Returns
| Return | Type | Description |
|---|---|---|
value | RequestBodyRaw | Type value RequestBodyRaw produced by the operation. |
Usage syntax
value := test.RequestBody.RawWithType(value, value) RequestBody.Query
Declaration:
func (requestBodyFactory) Query(values map[string]string) RequestBodyQuery Build a body application/x-www-form-urlencoded.
Parameters
| Parameter | Type | Description |
|---|---|---|
values | map[string]string | Values provided to the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | RequestBodyQuery | Type value RequestBodyQuery produced by the operation. |
Usage syntax
value := test.RequestBody.Query(value) RequestBody.FormData
Declaration:
func (requestBodyFactory) FormData(values FormData) RequestBodyFormData Build a body multipart/form-data.
Parameters
| Parameter | Type | Description |
|---|---|---|
values | FormData | Values provided to the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | RequestBodyFormData | Type value RequestBodyFormData produced by the operation. |
Usage syntax
value := test.RequestBody.FormData(value) RequestBody.JSON
Declaration:
func (requestBodyFactory) JSON(value any) RequestBodyJSON { return RequestBodyJSON It builds a JSON body.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | any | Value to be stored or issued. |
Returns
| Return | Type | Description |
|---|---|---|
RequestBodyJSON { return | RequestBodyJSON | Type value RequestBodyJSON produced by the operation. |
Usage syntax
RequestBodyJSON { return := test.RequestBody.JSON(value) ExpectedBodyRule
Declaration:
type ExpectedBodyRule interface {
MatchBody(body []byte) BodyMatchResult
} ExpectedBodyRule defines a public type of API.
ExpectedHTTPBodyRule
Declaration:
type ExpectedHTTPBodyRule interface {
ExpectedBodyRule
MatchHTTPBody(contentType, disposition string, body []byte) BodyMatchResult
} ExpectedHTTPBodyRule defines a public type of API.
ExpectedBodyEqual
Declaration:
type ExpectedBodyEqual struct {
Content any `json:"content"`
} ExpectedBodyEqual defines a public type of API.
Fields
| Field | Type | Description |
|---|---|---|
Content | anyjson: "content" " | Associated content. |
ExpectedBodyNotEqual
Declaration:
type ExpectedBodyNotEqual struct {
Content string `json:"content"`
} ExpectedBodyNotEqual defines a public type of API.
Fields
| Field | Type | Description |
|---|---|---|
Content | stringjson: "content" " | Associated content. |
ExpectedBodyContains
Declaration:
type ExpectedBodyContains struct {
Patterns []string `json:"patterns"`
} ExpectedBodyContains defines a public type of API.
Fields
| Field | Type | Description |
|---|---|---|
Patterns | []stringjson: "patterns" " | Pattern used for coincidence. |
ExpectedBodyNotContains
Declaration:
type ExpectedBodyNotContains struct {
Patterns []string `json:"patterns"`
} ExpectedBodyNotContains defines a public type of API.
Fields
| Field | Type | Description |
|---|---|---|
Patterns | []stringjson: "patterns" " | Pattern used for coincidence. |
ExpectedBodySnapshot
Declaration:
type ExpectedBodySnapshot struct {
File string `json:"file"`
Content string `json:"-"`
Error string `json:"-"`
} ExpectedBodySnapshot defines a public type of API.
Fields
| Field | Type | Description |
|---|---|---|
File | stringjson: "file" " | Associated file. |
Content | stringjson: "-" | Associated content. |
Error | stringjson: "-" | Associated error. |
ExpectedBodyJSONEqual
Declaration:
type ExpectedBodyJSONEqual struct {
Value any `json:"value,omitempty"`
} ExpectedBodyJSONEqual defines a public type of API.
Fields
| Field | Type | Description |
|---|---|---|
Value | anyjson: "value, omitempty" " | Value stored. |
ExpectedBodyJSONNotEqual
Declaration:
type ExpectedBodyJSONNotEqual struct {
Value any `json:"value,omitempty"`
} ExpectedBodyJSONNotEqual defines a public type of API.
Fields
| Field | Type | Description |
|---|---|---|
Value | anyjson: "value, omitempty" " | Value stored. |
ExpectedBodyJSONContains
Declaration:
type ExpectedBodyJSONContains struct {
Value any `json:"value,omitempty"`
} ExpectedBodyJSONContains defines a public type of API.
Fields
| Field | Type | Description |
|---|---|---|
Value | anyjson: "value, omitempty" " | Value stored. |
ExpectedBodyJSONNotContains
Declaration:
type ExpectedBodyJSONNotContains struct {
Value any `json:"value,omitempty"`
} ExpectedBodyJSONNotContains defines a public type of API.
Fields
| Field | Type | Description |
|---|---|---|
Value | anyjson: "value, omitempty" " | Value stored. |
ExpectedBodyCustom
Declaration:
type ExpectedBodyCustom struct {
Rules []ExpectedBodyRule `json:"-"`
} ExpectedBodyCustom defines a public type of API.
Fields
| Field | Type | Description |
|---|---|---|
Rules | []ExpectedBodyRulejson: "-" | Rules set. |
ExpectedBodyEqual.MatchBody
Declaration:
func (r ExpectedBodyEqual) MatchBody(body []byte) BodyMatchResult Compare the body with the rule.
Parameters
| Parameter | Type | Description |
|---|---|---|
body | []byte | Type value []byte required by the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | BodyMatchResult | Type value BodyMatchResult produced by the operation. |
Usage syntax
value := expectedBodyEqual.MatchBody(value) ExpectedBodyEqual.MatchHTTPBody
Declaration:
func (r ExpectedBodyEqual) MatchHTTPBody(contentType, disposition string, body []byte) BodyMatchResult Compare metadata and HTTP content.
Parameters
| Parameter | Type | Description |
|---|---|---|
| `` | contentType | Type value contentType required by the operation. |
disposition | string | Type value string required by the operation. |
body | []byte | Type value []byte required by the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | BodyMatchResult | Type value BodyMatchResult produced by the operation. |
Usage syntax
value := expectedBodyEqual.MatchHTTPBody(value, value, value) ExpectedBodyNotEqual.MatchBody
Declaration:
func (r ExpectedBodyNotEqual) MatchBody(body []byte) BodyMatchResult Compare the body with the rule.
Parameters
| Parameter | Type | Description |
|---|---|---|
body | []byte | Type value []byte required by the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | BodyMatchResult | Type value BodyMatchResult produced by the operation. |
Usage syntax
value := expectedBodyNotEqual.MatchBody(value) ExpectedBodyContains.MatchBody
Declaration:
func (r ExpectedBodyContains) MatchBody(body []byte) BodyMatchResult Compare the body with the rule.
Parameters
| Parameter | Type | Description |
|---|---|---|
body | []byte | Type value []byte required by the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | BodyMatchResult | Type value BodyMatchResult produced by the operation. |
Usage syntax
value := expectedBodyContains.MatchBody(value) ExpectedBodyNotContains.MatchBody
Declaration:
func (r ExpectedBodyNotContains) MatchBody(body []byte) BodyMatchResult Compare the body with the rule.
Parameters
| Parameter | Type | Description |
|---|---|---|
body | []byte | Type value []byte required by the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | BodyMatchResult | Type value BodyMatchResult produced by the operation. |
Usage syntax
value := expectedBodyNotContains.MatchBody(value) ExpectedBodySnapshot.MatchBody
Declaration:
func (r ExpectedBodySnapshot) MatchBody(body []byte) BodyMatchResult Compare the body with the rule.
Parameters
| Parameter | Type | Description |
|---|---|---|
body | []byte | Type value []byte required by the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | BodyMatchResult | Type value BodyMatchResult produced by the operation. |
Usage syntax
value := expectedBodySnapshot.MatchBody(value) ExpectedBodyJSONEqual.MatchBody
Declaration:
func (r ExpectedBodyJSONEqual) MatchBody(body []byte) BodyMatchResult Compare the body with the rule.
Parameters
| Parameter | Type | Description |
|---|---|---|
body | []byte | Type value []byte required by the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | BodyMatchResult | Type value BodyMatchResult produced by the operation. |
Usage syntax
value := expectedBodyJSONEqual.MatchBody(value) ExpectedBodyJSONNotEqual.MatchBody
Declaration:
func (r ExpectedBodyJSONNotEqual) MatchBody(body []byte) BodyMatchResult Compare the body with the rule.
Parameters
| Parameter | Type | Description |
|---|---|---|
body | []byte | Type value []byte required by the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | BodyMatchResult | Type value BodyMatchResult produced by the operation. |
Usage syntax
value := expectedBodyJSONNotEqual.MatchBody(value) ExpectedBodyJSONContains.MatchBody
Declaration:
func (r ExpectedBodyJSONContains) MatchBody(body []byte) BodyMatchResult Compare the body with the rule.
Parameters
| Parameter | Type | Description |
|---|---|---|
body | []byte | Type value []byte required by the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | BodyMatchResult | Type value BodyMatchResult produced by the operation. |
Usage syntax
value := expectedBodyJSONContains.MatchBody(value) ExpectedBodyJSONNotContains.MatchBody
Declaration:
func (r ExpectedBodyJSONNotContains) MatchBody(body []byte) BodyMatchResult Compare the body with the rule.
Parameters
| Parameter | Type | Description |
|---|---|---|
body | []byte | Type value []byte required by the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | BodyMatchResult | Type value BodyMatchResult produced by the operation. |
Usage syntax
value := expectedBodyJSONNotContains.MatchBody(value) ExpectedBodyCustom.MatchBody
Declaration:
func (r ExpectedBodyCustom) MatchBody(body []byte) BodyMatchResult Compare the body with the rule.
Parameters
| Parameter | Type | Description |
|---|---|---|
body | []byte | Type value []byte required by the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | BodyMatchResult | Type value BodyMatchResult produced by the operation. |
Usage syntax
value := expectedBodyCustom.MatchBody(value) ExpectedBody
Declaration:
var ExpectedBody expectedBodyFactory ExpectedBody it exposes a shared value of the package.
ExpectedBody.Equal
Declaration:
func (expectedBodyFactory) Equal(content any) ExpectedBodyEqual It builds a rule of equality.
Parameters
| Parameter | Type | Description |
|---|---|---|
content | any | Type value any required by the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | ExpectedBodyEqual | Type value ExpectedBodyEqual produced by the operation. |
Usage syntax
value := test.ExpectedBody.Equal(nil) ExpectedBody.NotEqual
Declaration:
func (expectedBodyFactory) NotEqual(content string) ExpectedBodyNotEqual It builds a rule of inequality.
Parameters
| Parameter | Type | Description |
|---|---|---|
content | string | Type value string required by the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | ExpectedBodyNotEqual | Type value ExpectedBodyNotEqual produced by the operation. |
Usage syntax
value := test.ExpectedBody.NotEqual(value) ExpectedBody.Contains
Declaration:
func (expectedBodyFactory) Contains(patterns ...string) ExpectedBodyContains It indicates whether a key contains a specific value.
Parameters
| Parameter | Type | Description |
|---|---|---|
patterns | ...string | Type value ...string required by the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | ExpectedBodyContains | Type value ExpectedBodyContains produced by the operation. |
Usage syntax
value := test.ExpectedBody.Contains(value) ExpectedBody.NotContains
Declaration:
func (expectedBodyFactory) NotContains(patterns ...string) ExpectedBodyNotContains It builds a rule of absence.
Parameters
| Parameter | Type | Description |
|---|---|---|
patterns | ...string | Type value ...string required by the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | ExpectedBodyNotContains | Type value ExpectedBodyNotContains produced by the operation. |
Usage syntax
value := test.ExpectedBody.NotContains(value) ExpectedBody.Snapshot
Declaration:
func (expectedBodyFactory) Snapshot(file string) ExpectedBodySnapshot It builds a snapshot-based rule.
Parameters
| Parameter | Type | Description |
|---|---|---|
file | string | Type value string required by the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | ExpectedBodySnapshot | Type value ExpectedBodySnapshot produced by the operation. |
Usage syntax
value := test.ExpectedBody.Snapshot(value) ExpectedBody.JSONEqual
Declaration:
func (expectedBodyFactory) JSONEqual(value any) ExpectedBodyJSONEqual It builds a JSON equality rule.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | any | Value to be stored or issued. |
Returns
| Return | Type | Description |
|---|---|---|
value | ExpectedBodyJSONEqual | Type value ExpectedBodyJSONEqual produced by the operation. |
Usage syntax
value := test.ExpectedBody.JSONEqual(value) ExpectedBody.JSONNotEqual
Declaration:
func (expectedBodyFactory) JSONNotEqual(value any) ExpectedBodyJSONNotEqual It builds a rule of JSON inequality.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | any | Value to be stored or issued. |
Returns
| Return | Type | Description |
|---|---|---|
value | ExpectedBodyJSONNotEqual | Type value ExpectedBodyJSONNotEqual produced by the operation. |
Usage syntax
value := test.ExpectedBody.JSONNotEqual(value) ExpectedBody.JSONContains
Declaration:
func (expectedBodyFactory) JSONContains(value any) ExpectedBodyJSONContains It builds a JSON inclusion rule.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | any | Value to be stored or issued. |
Returns
| Return | Type | Description |
|---|---|---|
value | ExpectedBodyJSONContains | Type value ExpectedBodyJSONContains produced by the operation. |
Usage syntax
value := test.ExpectedBody.JSONContains(value) ExpectedBody.JSONNotContains
Declaration:
func (expectedBodyFactory) JSONNotContains(value any) ExpectedBodyJSONNotContains It builds a JSON rule of exclusion.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | any | Value to be stored or issued. |
Returns
| Return | Type | Description |
|---|---|---|
value | ExpectedBodyJSONNotContains | Type value ExpectedBodyJSONNotContains produced by the operation. |
Usage syntax
value := test.ExpectedBody.JSONNotContains(value) ExpectedBody.Custom
Declaration:
func (expectedBodyFactory) Custom(rules ...ExpectedBodyRule) ExpectedBodyCustom It builds a composite rule.
Parameters
| Parameter | Type | Description |
|---|---|---|
rules | ...ExpectedBodyRule | Type value ...ExpectedBodyRule required by the operation. |
Returns
| Return | Type | Description |
|---|---|---|
value | ExpectedBodyCustom | Type value ExpectedBodyCustom produced by the operation. |
Usage syntax
value := test.ExpectedBody.Custom(value)