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

Function TestNewAliasSetCommand_Structure

cmd/alias/alias_test.go:153–161  ·  view source on GitHub ↗

--- Set command ---

(t *testing.T)

Source from the content-addressed store, hash-verified

151// --- Set command ---
152
153func TestNewAliasSetCommand_Structure(t *testing.T) {
154 cmd := NewAliasSetCommand()
155
156 assert.NotNil(t, cmd)
157 assert.Equal(t, "set <alias> [flags]", cmd.Use)
158 assert.Equal(t, "Set an alias for the specified server address", cmd.Short)
159 assert.Equal(t, "Set an alias for the specified server address", cmd.Long)
160 assert.NotNil(t, cmd.Run)
161}
162
163func TestNewAliasSetCommand_TargetFlag(t *testing.T) {
164 cmd := NewAliasSetCommand()

Callers

nothing calls this directly

Calls 1

NewAliasSetCommandFunction · 0.85

Tested by

no test coverage detected