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

Function NewValueC

value.go:50–52  ·  view source on GitHub ↗

NewValueC returns a new Value instance with config. Requirements for config are same as for WithConfig function. Value may be nil. See NewValue for usage example.

(config Config, value interface{})

Source from the content-addressed store, hash-verified

48//
49// See NewValue for usage example.
50func NewValueC(config Config, value interface{}) *Value {
51 return newValue(newChainWithConfig("Value()", config.withDefaults()), value)
52}
53
54func newValue(parent *chain, val interface{}) *Value {
55 v := &Value{parent.clone(), nil}

Callers 1

TestValue_ConstructorsFunction · 0.85

Calls 3

newValueFunction · 0.85
newChainWithConfigFunction · 0.85
withDefaultsMethod · 0.80

Tested by 1

TestValue_ConstructorsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…