MCPcopy Index your code
hub / github.com/cli/cli / login

Function login

pkg/cmd/auth/token/token_test.go:276–280  ·  view source on GitHub ↗
(t *testing.T, c gh.Config, hostname, username, token, gitProtocol string, secureStorage bool)

Source from the content-addressed store, hash-verified

274}
275
276func login(t *testing.T, c gh.Config, hostname, username, token, gitProtocol string, secureStorage bool) {
277 t.Helper()
278 _, err := c.Authentication().Login(hostname, username, token, gitProtocol, secureStorage)
279 require.NoError(t, err)
280}

Callers 2

TestTokenRunFunction · 0.70

Calls 3

HelperMethod · 0.65
LoginMethod · 0.65
AuthenticationMethod · 0.65

Tested by

no test coverage detected