(t *testing.T)
| 183 | } |
| 184 | |
| 185 | func 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 | |
| 191 | func TestCompleteFromList(t *testing.T) { |
| 192 | expected := []string{"one", "two", "three"} |