MCPcopy Create free account
hub / github.com/cli/cli / login

Function login

pkg/cmd/auth/token/token_test.go:278–282  ·  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

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

Callers 2

TestTokenRunFunction · 0.70

Calls 3

HelperMethod · 0.65
LoginMethod · 0.65
AuthenticationMethod · 0.65

Tested by

no test coverage detected