(t *testing.T)
| 189 | } |
| 190 | |
| 191 | func 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 | |
| 199 | func TestCompleteImageNames(t *testing.T) { |
| 200 | tests := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…