Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ MockInitWithError
Function
MockInitWithError
internal/keyring/keyring.go:83–85 ·
view source on GitHub ↗
(err error)
Source
from the content-addressed store, hash-verified
81
}
82
83
func
MockInitWithError(err error) {
84
keyring.MockInitWithError(err)
85
}
Callers
6
TestLoginSecureStorageWithErrorFallsbackAndReports
Function · 0.92
TestLogoutIgnoresErrorsFromConfigAndKeyring
Function · 0.92
TestLoginSucceedsWhenKeyringUnavailable
Function · 0.92
TestLoginRefreshable
Function · 0.92
stubKeyringDeleteThenReadError
Function · 0.92
TestMigrationErrorsWhenUnableToGetExpectedSecureToken
Function · 0.92
Calls
no outgoing calls
Tested by
6
TestLoginSecureStorageWithErrorFallsbackAndReports
Function · 0.74
TestLogoutIgnoresErrorsFromConfigAndKeyring
Function · 0.74
TestLoginSucceedsWhenKeyringUnavailable
Function · 0.74
TestLoginRefreshable
Function · 0.74
stubKeyringDeleteThenReadError
Function · 0.74
TestMigrationErrorsWhenUnableToGetExpectedSecureToken
Function · 0.74