MCPcopy
hub / github.com/syncthing/syncthing / LesserEqual

Method LesserEqual

lib/protocol/vector.go:200–203  ·  view source on GitHub ↗

LesserEqual returns true when the two vectors are equivalent or v is Lesser than b.

(b Vector)

Source from the content-addressed store, hash-verified

198// LesserEqual returns true when the two vectors are equivalent or v is Lesser
199// than b.
200func (v Vector) LesserEqual(b Vector) bool {
201 comp := v.Compare(b)
202 return comp == Lesser || comp == Equal
203}
204
205// GreaterEqual returns true when the two vectors are equivalent or v is Greater
206// than b.

Callers 1

TestCompareFunction · 0.80

Calls 1

CompareMethod · 0.95

Tested by 1

TestCompareFunction · 0.64