(t *testing.T)
| 170 | } |
| 171 | |
| 172 | func TestNewAliasSetCommand_TargetFlagRequired(t *testing.T) { |
| 173 | cmd := NewAliasSetCommand() |
| 174 | |
| 175 | annotations := cmd.Flags().Lookup("target").Annotations |
| 176 | assert.NotNil(t, annotations, "target flag should have annotations") |
| 177 | _, hasRequired := annotations[cobra.BashCompOneRequiredFlag] |
| 178 | assert.True(t, hasRequired, "target flag should be marked as required") |
| 179 | } |
| 180 | |
| 181 | func TestNewAliasSetCommand_TargetFlagParsing(t *testing.T) { |
| 182 | cmd := NewAliasSetCommand() |
nothing calls this directly
no test coverage detected