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

Method ExistingKey

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

Source from the content-addressed store, hash-verified

1323}
1324
1325func (m *TMap) ExistingKey(rand *rand.Rand) int {
1326 if len(m.keys) == 0 {
1327 return 0
1328 }
1329 return m.keys[rand.Intn(len(m.keys))]
1330}
1331
1332func (m *TMap) Set(k, v int) {
1333 m.prev = m.im

Callers 2

TestMap_SetFunction · 0.45
TestMap_DeleteFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected