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

Function TestCompleteFileNames

cli/command/completion/functions_test.go:185–189  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

183}
184
185func TestCompleteFileNames(t *testing.T) {
186 values, directives := FileNames()(nil, nil, "")
187 assert.Check(t, is.Equal(directives, cobra.ShellCompDirectiveDefault))
188 assert.Check(t, is.Len(values, 0))
189}
190
191func TestCompleteFromList(t *testing.T) {
192 expected := []string{"one", "two", "three"}

Callers

nothing calls this directly

Calls 2

FileNamesFunction · 0.85
LenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…