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

Function decodedSecret

coderd/cryptokeys/cache_test.go:504–511  ·  view source on GitHub ↗
(t *testing.T, key codersdk.CryptoKey)

Source from the content-addressed store, hash-verified

502}
503
504func decodedSecret(t *testing.T, key codersdk.CryptoKey) []byte {
505 t.Helper()
506
507 secret, err := hex.DecodeString(key.Secret)
508 require.NoError(t, err)
509
510 return secret
511}
512
513func generateKey(t *testing.T, size int) string {
514 t.Helper()

Callers 1

TestCryptoKeyCacheFunction · 0.85

Calls 2

DecodeStringMethod · 0.80
HelperMethod · 0.65

Tested by

no test coverage detected