TestCompleteEngineNamesExactMatch tests when toComplete exactly matches an engine name
(t *testing.T)
| 692 | |
| 693 | // TestCompleteEngineNamesExactMatch tests when toComplete exactly matches an engine name |
| 694 | func TestCompleteEngineNamesExactMatch(t *testing.T) { |
| 695 | cmd := &cobra.Command{} |
| 696 | |
| 697 | // Test exact match - should still return the matching engine |
| 698 | completions, directive := CompleteEngineNames(cmd, nil, "copilot") |
| 699 | assert.Equal(t, cobra.ShellCompDirectiveNoFileComp, directive) |
| 700 | assert.Len(t, completions, 1, "Should return copilot") |
| 701 | assert.Contains(t, completions, "copilot") |
| 702 | } |
| 703 | |
| 704 | // TestCompleteEngineNamesCaseSensitivity tests engine name completion is case-sensitive |
| 705 | func TestCompleteEngineNamesCaseSensitivity(t *testing.T) { |
nothing calls this directly
no test coverage detected