MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / less

Function less

scripts/verify/main.go:59–70  ·  view source on GitHub ↗
(bi, bj R)

Source from the content-addressed store, hash-verified

57}
58
59func less(bi, bj R) bool {
60 if bi.s != bj.s {
61 return bi.s < bj.s
62 }
63 if bi.p != bj.p {
64 return bi.p < bj.p
65 }
66 if bi.o != bj.o {
67 return bi.o < bj.o
68 }
69 return bi.v < bj.v
70}
71
72func (b ByR) Less(i int, j int) bool {
73 bi := b[i]

Callers 2

LessMethod · 0.85
compareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected