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

Function newSigner

coderd/workspaceapps/token_test.go:342–349  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

340}
341
342func newSigner(t *testing.T) jwtutils.StaticKey {
343 t.Helper()
344
345 return jwtutils.StaticKey{
346 ID: "test",
347 Key: generateSecret(t, 64),
348 }
349}
350
351func generateSecret(t *testing.T, size int) []byte {
352 t.Helper()

Callers 1

Test_FromRequestFunction · 0.85

Calls 2

generateSecretFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected