MCPcopy Create free account
hub / github.com/araddon/qlbridge / NewBoolValue

Function NewBoolValue

value/value.go:491–496  ·  view source on GitHub ↗
(v bool)

Source from the content-addressed store, hash-verified

489func (m IntValue) Int() int64 { return m.v }
490
491func NewBoolValue(v bool) BoolValue {
492 if v {
493 return BoolValueTrue
494 }
495 return BoolValueFalse
496}
497
498func (m BoolValue) Nil() bool { return false }
499func (m BoolValue) Err() bool { return false }

Callers 15

toBoolEvalFunction · 0.92
notEvalFunction · 0.92
equalEvalFunction · 0.92
notEqualEvalFunction · 0.92
greaterThanEvalFunction · 0.92
greatherThanOrEqualEvalFunction · 0.92
lessThanOrEqualEvalFunction · 0.92
lessThanEvalFunction · 0.92
anyEvalFunction · 0.92
allEvalFunction · 0.92
hasPrefixEvalFunction · 0.92
hasSuffixEvalFunction · 0.92

Calls

no outgoing calls

Tested by 4

TestSqlDeleteFunction · 0.74
ValidateMethod · 0.74
TestEqualFunction · 0.68
TestValueToFloatFunction · 0.68