MCPcopy Create free account
hub / github.com/benbjohnson/immutable / ExistingKey

Method ExistingKey

immutable_test.go:2210–2215  ·  view source on GitHub ↗
(rand *rand.Rand)

Source from the content-addressed store, hash-verified

2208}
2209
2210func (m *TSortedMap) ExistingKey(rand *rand.Rand) int {
2211 if len(m.keys) == 0 {
2212 return 0
2213 }
2214 return m.keys[rand.Intn(len(m.keys))]
2215}
2216
2217func (m *TSortedMap) Set(k, v int) {
2218 m.prev = m.im

Callers 2

TestSortedMap_SetFunction · 0.95
TestSortedMap_DeleteFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected