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

Function GenerateLicenseRaw

enterprise/coderd/coderdenttest/coderdenttest.go:312–319  ·  view source on GitHub ↗
(t *testing.T, claims jwt.Claims)

Source from the content-addressed store, hash-verified

310}
311
312func GenerateLicenseRaw(t *testing.T, claims jwt.Claims) string {
313 t.Helper()
314 tok := jwt.NewWithClaims(jwt.SigningMethodEdDSA, claims)
315 tok.Header[license.HeaderKeyID] = testKeyID
316 signedTok, err := tok.SignedString(testPrivateKey)
317 require.NoError(t, err)
318 return signedTok
319}
320
321type nopcloser struct{}
322

Callers 1

GenerateLicenseFunction · 0.85

Calls 1

HelperMethod · 0.65

Tested by

no test coverage detected