MCPcopy Create free account
hub / github.com/gavv/httpexpect / Raw

Method Raw

object.go:70–72  ·  view source on GitHub ↗

Raw returns underlying value attached to Object. This is the value originally passed to NewObject, converted to canonical form. Example: object := NewObject(t, map[string]interface{}{"foo": 123}) assert.Equal(t, map[string]interface{}{"foo": 123.0}, object.Raw())

()

Source from the content-addressed store, hash-verified

68// object := NewObject(t, map[string]interface{}{"foo": 123})
69// assert.Equal(t, map[string]interface{}{"foo": 123.0}, object.Raw())
70func (o *Object) Raw() map[string]interface{} {
71 return o.value
72}
73
74// Decode unmarshals the underlying value attached to the Object to a target variable
75// target should be one of this:

Callers 4

TestObject_RawFunction · 0.95
TestObject_FilterFunction · 0.95
TestObject_FindFunction · 0.95
TestObject_FindAllFunction · 0.95

Calls

no outgoing calls

Tested by 4

TestObject_RawFunction · 0.76
TestObject_FilterFunction · 0.76
TestObject_FindFunction · 0.76
TestObject_FindAllFunction · 0.76