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

Function NewArrayC

array.go:37–39  ·  view source on GitHub ↗

NewArrayC returns a new Array instance with config. Requirements for config are same as for WithConfig function. If value is nil, failure is reported. Example: array := NewArrayC(config, []interface{}{"foo", 123})

(config Config, value []interface{})

Source from the content-addressed store, hash-verified

35//
36// array := NewArrayC(config, []interface{}{"foo", 123})
37func NewArrayC(config Config, value []interface{}) *Array {
38 return newArray(newChainWithConfig("Array()", config.withDefaults()), value)
39}
40
41func newArray(parent *chain, val []interface{}) *Array {
42 a := &Array{chain: parent.clone(), value: nil}

Callers 1

TestArray_ConstructorsFunction · 0.85

Calls 3

newArrayFunction · 0.85
newChainWithConfigFunction · 0.85
withDefaultsMethod · 0.80

Tested by 1

TestArray_ConstructorsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…