MCPcopy Index your code
hub / github.com/devopsctl/gitlabctl / TestLogin

Function TestLogin

cmd/login_test.go:9–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestLogin(t *testing.T) {
10 stdout, err := executeCommand(rootCmd, "login", "-H=http://localhost:10080",
11 "-p=123qwe123", "-u=root")
12 tInfo(stdout)
13 require.Nil(t, err, stdout)
14 require.Contains(t, stdout,
15 "gitlabctl.yaml file has been created by login command")
16}

Callers

nothing calls this directly

Calls 2

executeCommandFunction · 0.85
tInfoFunction · 0.85

Tested by

no test coverage detected