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

Function NewBoolean

boolean.go:23–25  ·  view source on GitHub ↗

NewBoolean returns a new Boolean instance. If reporter is nil, the function panics. Example: boolean := NewBoolean(t, true) boolean.IsTrue()

(reporter Reporter, value bool)

Source from the content-addressed store, hash-verified

21// boolean := NewBoolean(t, true)
22// boolean.IsTrue()
23func NewBoolean(reporter Reporter, value bool) *Boolean {
24 return newBoolean(newChainWithDefaults("Boolean()", reporter), value)
25}
26
27// NewBooleanC returns a new Boolean instance with config.
28//

Callers 9

TestBoolean_ConstructorsFunction · 0.85
TestBoolean_RawFunction · 0.85
TestBoolean_DecodeFunction · 0.85
TestBoolean_AliasFunction · 0.85
TestBoolean_PathFunction · 0.85
TestBoolean_SchemaFunction · 0.85
TestBoolean_IsEqualFunction · 0.85
TestBoolean_IsValueFunction · 0.85
TestBoolean_InListFunction · 0.85

Calls 2

newBooleanFunction · 0.85
newChainWithDefaultsFunction · 0.85

Tested by 9

TestBoolean_ConstructorsFunction · 0.68
TestBoolean_RawFunction · 0.68
TestBoolean_DecodeFunction · 0.68
TestBoolean_AliasFunction · 0.68
TestBoolean_PathFunction · 0.68
TestBoolean_SchemaFunction · 0.68
TestBoolean_IsEqualFunction · 0.68
TestBoolean_IsValueFunction · 0.68
TestBoolean_InListFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…