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

Function NewObjectC

object.go:38–40  ·  view source on GitHub ↗

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

(config Config, value map[string]interface{})

Source from the content-addressed store, hash-verified

36//
37// object := NewObjectC(config, map[string]interface{}{"foo": 123})
38func NewObjectC(config Config, value map[string]interface{}) *Object {
39 return newObject(newChainWithConfig("Object()", config.withDefaults()), value)
40}
41
42func newObject(parent *chain, val map[string]interface{}) *Object {
43 o := &Object{chain: parent.clone(), value: nil}

Callers 1

TestObject_ConstructorsFunction · 0.85

Calls 3

newObjectFunction · 0.85
newChainWithConfigFunction · 0.85
withDefaultsMethod · 0.80

Tested by 1

TestObject_ConstructorsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…