MCPcopy Create free account
hub / github.com/Driver-C/tryssh / TestNewAliasSetCommand_TargetFlagRequired

Function TestNewAliasSetCommand_TargetFlagRequired

cmd/alias/alias_test.go:172–179  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

170}
171
172func 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
181func TestNewAliasSetCommand_TargetFlagParsing(t *testing.T) {
182 cmd := NewAliasSetCommand()

Callers

nothing calls this directly

Calls 1

NewAliasSetCommandFunction · 0.85

Tested by

no test coverage detected