MCPcopy Index your code
hub / github.com/gavv/httpexpect / Raw

Method Raw

array.go:69–71  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

67// array := NewArray(t, []interface{}{"foo", 123})
68// assert.Equal(t, []interface{}{"foo", 123.0}, array.Raw())
69func (a *Array) Raw() []interface{} {
70 return a.value
71}
72
73// Decode unmarshals the underlying value attached to the Array to a target variable.
74// target should be one of these:

Callers 5

TestArray_RawFunction · 0.95
TestArray_FilterFunction · 0.95
TestArray_FindFunction · 0.95
TestArray_FindAllFunction · 0.95
builtinComparatorFunction · 0.45

Calls

no outgoing calls

Tested by 4

TestArray_RawFunction · 0.76
TestArray_FilterFunction · 0.76
TestArray_FindFunction · 0.76
TestArray_FindAllFunction · 0.76