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

Function TestCompleteFromList

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

Source from the content-addressed store, hash-verified

189}
190
191func TestCompleteFromList(t *testing.T) {
192 expected := []string{"one", "two", "three"}
193
194 values, directives := FromList(expected...)(nil, nil, "")
195 assert.Check(t, is.Equal(directives&cobra.ShellCompDirectiveNoFileComp, cobra.ShellCompDirectiveNoFileComp), "Should not perform file completion")
196 assert.Check(t, is.DeepEqual(values, expected))
197}
198
199func TestCompleteImageNames(t *testing.T) {
200 tests := []struct {

Callers

nothing calls this directly

Calls 1

FromListFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…