MCPcopy Create free account
hub / github.com/auth0/auth0-cli / TestGenerateState

Function TestGenerateState

internal/cli/utils_shared_test.go:170–178  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

168}
169
170func TestGenerateState(t *testing.T) {
171 state, err := generateState(0)
172 assert.Equal(t, "", state)
173 assert.Nil(t, err)
174
175 state, err = generateState(cliLoginTestingStateSize)
176 assert.IsType(t, "string", state)
177 assert.Nil(t, err)
178}
179
180func TestAddLocalCallbackURLToClient(t *testing.T) {
181 tests := []struct {

Callers

nothing calls this directly

Calls 1

generateStateFunction · 0.85

Tested by

no test coverage detected