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

Function NewBooleanC

boolean.go:35–37  ·  view source on GitHub ↗

NewBooleanC returns a new Boolean instance with config. Requirements for config are same as for WithConfig function. Example: boolean := NewBooleanC(config, true) boolean.IsTrue()

(config Config, value bool)

Source from the content-addressed store, hash-verified

33// boolean := NewBooleanC(config, true)
34// boolean.IsTrue()
35func NewBooleanC(config Config, value bool) *Boolean {
36 return newBoolean(newChainWithConfig("Boolean()", config.withDefaults()), value)
37}
38
39func newBoolean(parent *chain, val bool) *Boolean {
40 return &Boolean{chain: parent.clone(), value: val}

Callers 1

TestBoolean_ConstructorsFunction · 0.85

Calls 3

newBooleanFunction · 0.85
newChainWithConfigFunction · 0.85
withDefaultsMethod · 0.80

Tested by 1

TestBoolean_ConstructorsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…