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

Function TestNewAliasSetCommand_TargetFlag

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

Source from the content-addressed store, hash-verified

161}
162
163func TestNewAliasSetCommand_TargetFlag(t *testing.T) {
164 cmd := NewAliasSetCommand()
165
166 targetFlag := cmd.Flags().Lookup("target")
167 assert.NotNil(t, targetFlag, "target flag should exist")
168 assert.Equal(t, "t", targetFlag.Shorthand)
169 assert.Equal(t, "", targetFlag.DefValue)
170}
171
172func TestNewAliasSetCommand_TargetFlagRequired(t *testing.T) {
173 cmd := NewAliasSetCommand()

Callers

nothing calls this directly

Calls 1

NewAliasSetCommandFunction · 0.85

Tested by

no test coverage detected