()
| 16 | ) |
| 17 | |
| 18 | func 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 | |
| 34 | func runtimeWithAuthTestOperations( |
| 35 | openStore app.OpenSecretsStoreFunc, |
no test coverage detected