MCPcopy
hub / github.com/google/gvisor / MinKey

Method MinKey

pkg/segment/test/set_functions.go:48–50  ·  view source on GitHub ↗

MinKey is adjusted to make sure no add overflow would happen in test cases. e.g. A gap with range {MinInt32, 2} would cause overflow in Range().Length(). Normally Keys should be unsigned to avoid these issues.

()

Source from the content-addressed store, hash-verified

46//
47// Normally Keys should be unsigned to avoid these issues.
48func (s gapSetFunctions) MinKey() int {
49 return s.setFunctions.MinKey() / 2
50}
51
52// MaxKey returns the maximum key for the set.
53func (s gapSetFunctions) MaxKey() int {

Callers

nothing calls this directly

Calls 1

MinKeyMethod · 0.65

Tested by

no test coverage detected