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

Function login

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

Source from the content-addressed store, hash-verified

762}
763
764func login(t *testing.T, c gh.Config, hostname, username, token, protocol string) {
765 t.Helper()
766 _, err := c.Authentication().Login(hostname, username, token, protocol, false)
767 require.NoError(t, err)
768}
769
770// replaceAll replaces all instances of old with new in s, as well as all instances
771// of the JSON-escaped version of old with the JSON-escaped version of new.

Callers 1

Test_statusRunFunction · 0.70

Calls 3

HelperMethod · 0.65
LoginMethod · 0.65
AuthenticationMethod · 0.65

Tested by

no test coverage detected