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

Function NewArray

array.go:25–27  ·  view source on GitHub ↗

NewArray returns a new Array instance. If reporter is nil, the function panics. If value is nil, failure is reported. Example: array := NewArray(t, []interface{}{"foo", 123})

(reporter Reporter, value []interface{})

Source from the content-addressed store, hash-verified

23//
24// array := NewArray(t, []interface{}{"foo", 123})
25func NewArray(reporter Reporter, value []interface{}) *Array {
26 return newArray(newChainWithDefaults("Array()", reporter), value)
27}
28
29// NewArrayC returns a new Array instance with config.
30//

Callers 15

TestArray_ConstructorsFunction · 0.85
TestArray_RawFunction · 0.85
TestArray_DecodeFunction · 0.85
TestArray_AliasFunction · 0.85
TestArray_PathFunction · 0.85
TestArray_SchemaFunction · 0.85
TestArray_GettersFunction · 0.85
TestArray_IsEmptyFunction · 0.85
TestArray_IsEqualFunction · 0.85
TestArray_InListFunction · 0.85
TestArray_ConsistsOfFunction · 0.85

Calls 2

newArrayFunction · 0.85
newChainWithDefaultsFunction · 0.85

Tested by 15

TestArray_ConstructorsFunction · 0.68
TestArray_RawFunction · 0.68
TestArray_DecodeFunction · 0.68
TestArray_AliasFunction · 0.68
TestArray_PathFunction · 0.68
TestArray_SchemaFunction · 0.68
TestArray_GettersFunction · 0.68
TestArray_IsEmptyFunction · 0.68
TestArray_IsEqualFunction · 0.68
TestArray_InListFunction · 0.68
TestArray_ConsistsOfFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…