MCPcopy
hub / github.com/dgraph-io/dgraph / CompareBetween

Function CompareBetween

types/compare.go:40–43  ·  view source on GitHub ↗

CompareBetween compares if the dst value lie between two values val1 and val2(both inclusive).

(dst, val1, val2 Val)

Source from the content-addressed store, hash-verified

38// CompareBetween compares if the dst value lie between
39// two values val1 and val2(both inclusive).
40func CompareBetween(dst, val1, val2 Val) bool {
41 return CompareVals("ge", dst, val1) &&
42 CompareVals("le", dst, val2)
43}

Callers 2

handleValuePostingsMethod · 0.92
handleCompareFunctionMethod · 0.92

Calls 1

CompareValsFunction · 0.85

Tested by

no test coverage detected