MCPcopy Index your code
hub / github.com/coder/coder / generateKey

Function generateKey

coderd/cryptokeys/cache_test.go:513–521  ·  view source on GitHub ↗
(t *testing.T, size int)

Source from the content-addressed store, hash-verified

511}
512
513func generateKey(t *testing.T, size int) string {
514 t.Helper()
515
516 key := make([]byte, size)
517 _, err := rand.Read(key)
518 require.NoError(t, err)
519
520 return hex.EncodeToString(key)
521}

Callers 1

TestCryptoKeyCacheFunction · 0.70

Calls 2

HelperMethod · 0.65
ReadMethod · 0.65

Tested by

no test coverage detected