MCPcopy Index your code
hub / github.com/rilldata/rill / Test_generateCodeVerifier

Function Test_generateCodeVerifier

cli/pkg/pkce/authenticator_test.go:8–20  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func Test_generateCodeVerifier(t *testing.T) {
9 for i := 0; i < 1000; i++ {
10 code, err := generateCodeVerifier()
11 require.NoError(t, err)
12 require.NotEmpty(t, code)
13 require.GreaterOrEqual(t, len(code), 43)
14 require.LessOrEqual(t, len(code), 128)
15 // only contains A-Z, a-z, 0-9, and the punctuation characters -._~ (hyphen, period, underscore, and tilde)
16 for _, c := range code {
17 require.Contains(t, charset, string(c))
18 }
19 }
20}

Callers

nothing calls this directly

Calls 2

generateCodeVerifierFunction · 0.85
ContainsMethod · 0.80

Tested by

no test coverage detected