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

Function runtimeWithAuthStore

internal/cmd/cmd_testutil_test.go:153–165  ·  view source on GitHub ↗
(store secrets.Store)

Source from the content-addressed store, hash-verified

151}
152
153func runtimeWithAuthStore(store secrets.Store) *app.Runtime {
154 operations := app.AuthOperations{
155 OpenSecretsStore: func() (secrets.Store, error) {
156 return store, nil
157 },
158 }
159 if secretStore, ok := store.(secrets.SecretStore); ok {
160 operations.OpenSecretStore = func() (secrets.SecretStore, error) {
161 return secretStore, nil
162 }
163 }
164 return &app.Runtime{Auth: operations, KeyringOptions: testKeyringOptions()}
165}
166
167func testKeyringOptions() *secrets.OpenOptions {
168 return &secrets.OpenOptions{

Calls 1

testKeyringOptionsFunction · 0.85

Tested by

no test coverage detected