MCPcopy
hub / github.com/cli/cli / login

Function login

pkg/cmd/auth/setupgit/setupgit_test.go:202–206  ·  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

200}
201
202func login(t *testing.T, c gh.Config, hostname, username, token, gitProtocol string, secureStorage bool) {
203 t.Helper()
204 _, err := c.Authentication().Login(hostname, username, token, gitProtocol, secureStorage)
205 require.NoError(t, err)
206}

Callers 1

Test_setupGitRunFunction · 0.70

Calls 3

HelperMethod · 0.65
LoginMethod · 0.65
AuthenticationMethod · 0.65

Tested by

no test coverage detected