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

Function TestNewUsersCommand_Structure

cmd/create/create_test.go:78–87  ·  view source on GitHub ↗

--- Users command ---

(t *testing.T)

Source from the content-addressed store, hash-verified

76// --- Users command ---
77
78func TestNewUsersCommand_Structure(t *testing.T) {
79 cmd := NewUsersCommand()
80
81 assert.NotNil(t, cmd)
82 assert.Equal(t, "users <username>", cmd.Use)
83 assert.Equal(t, "Create an alternative username", cmd.Short)
84 assert.Equal(t, "Create an alternative username", cmd.Long)
85 assert.Equal(t, []string{"user", "usr"}, cmd.Aliases)
86 assert.NotNil(t, cmd.Run)
87}
88
89func TestNewUsersCommand_ArgsValidation(t *testing.T) {
90 cmd := NewUsersCommand()

Callers

nothing calls this directly

Calls 1

NewUsersCommandFunction · 0.70

Tested by

no test coverage detected