MCPcopy Create free account
hub / github.com/openclaw/gogcli / defaultAuthTestOperations

Function defaultAuthTestOperations

internal/cmd/auth_add_test.go:18–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16)
17
18func defaultAuthTestOperations() (
19 app.OpenSecretsStoreFunc,
20 app.AuthorizeGoogleFunc,
21 app.EnsureKeychainAccessFunc,
22 app.FetchAuthorizedIdentityFunc,
23) {
24 openStore := func() (secrets.Store, error) {
25 layout, err := config.NewSystemResolver("").Resolve(config.PathKindConfig, config.PathKindData)
26 if err != nil {
27 return nil, err
28 }
29 return secrets.Open(systemKeyringOpenOptions(layout, config.NewConfigStore(layout)))
30 }
31 return openStore, googleauth.Authorize, secrets.EnsureKeychainAccessContext, googleauth.IdentityForRefreshToken
32}
33
34func runtimeWithAuthTestOperations(
35 openStore app.OpenSecretsStoreFunc,

Calls 5

NewSystemResolverFunction · 0.92
OpenFunction · 0.92
NewConfigStoreFunction · 0.92
systemKeyringOpenOptionsFunction · 0.85
ResolveMethod · 0.45

Tested by

no test coverage detected