MCPcopy Create free account
hub / github.com/algolia/cli / seedToken

Function seedToken

pkg/cmd/application/update/update_test.go:20–28  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

18)
19
20func seedToken(t *testing.T) {
21 t.Helper()
22 keyring.MockInit()
23 require.NoError(t, auth.SaveToken(&dashboard.OAuthTokenResponse{
24 AccessToken: "test-token",
25 ExpiresIn: 3600,
26 CreatedAt: time.Now().Unix(),
27 }))
28}
29
30// newServer stubs the dashboard PATCH endpoint, echoing the requested name back
31// in the response so the command's success output can be asserted.

Callers 1

newOptsFunction · 0.70

Calls 2

SaveTokenFunction · 0.92
HelperMethod · 0.80

Tested by

no test coverage detected