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

Function fakeBase64RandomData

enterprise/dbcrypt/dbcrypt_internal_test.go:875–881  ·  view source on GitHub ↗
(t *testing.T, n int)

Source from the content-addressed store, hash-verified

873}
874
875func fakeBase64RandomData(t *testing.T, n int) string {
876 t.Helper()
877 b := make([]byte, n)
878 _, err := io.ReadFull(rand.Reader, b)
879 require.NoError(t, err)
880 return base64.StdEncoding.EncodeToString(b)
881}
882
883// requireMCPServerConfigDecrypted verifies all encrypted fields on an
884// MCPServerConfig match the expected plaintext values and carry the

Callers 5

TestUserLinksFunction · 0.85
TestExternalAuthLinksFunction · 0.85
TestCryptoKeysFunction · 0.85
TestNewFunction · 0.85
TestUserSecretsFunction · 0.85

Calls 1

HelperMethod · 0.65

Tested by

no test coverage detected