MCPcopy Index your code
hub / github.com/docker/cli / TestLoginHelpDocumentsPasswordDash

Function TestLoginHelpDocumentsPasswordDash

cli/command/registry/login_test.go:728–733  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

726}
727
728func TestLoginHelpDocumentsPasswordDash(t *testing.T) {
729 cmd := newLoginCommand(test.NewFakeCli(&fakeClient{}))
730 flag := cmd.Flags().Lookup("password")
731 assert.Check(t, flag != nil)
732 assert.Check(t, is.Contains(flag.Usage, `"-"`))
733}

Callers

nothing calls this directly

Calls 2

newLoginCommandFunction · 0.85
ContainsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…