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