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

Function login

pkg/cmd/auth/status/status_test.go:1123–1127  ·  view source on GitHub ↗
(t *testing.T, c gh.Config, hostname, username, token, protocol string)

Source from the content-addressed store, hash-verified

1121}
1122
1123func login(t *testing.T, c gh.Config, hostname, username, token, protocol string) {
1124 t.Helper()
1125 _, err := c.Authentication().Login(hostname, username, token, protocol, false)
1126 require.NoError(t, err)
1127}
1128
1129func loginRefreshable(t *testing.T, c gh.Config, hostname, username, accessToken, refreshToken string, expiresAt, refreshTokenExpiresAt *time.Time) {
1130 t.Helper()

Callers 1

Test_statusRunFunction · 0.70

Calls 3

HelperMethod · 0.65
LoginMethod · 0.65
AuthenticationMethod · 0.65

Tested by

no test coverage detected