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

Function TestNewPasswordsCommand_Structure

cmd/create/create_test.go:146–155  ·  view source on GitHub ↗

--- Passwords command ---

(t *testing.T)

Source from the content-addressed store, hash-verified

144// --- Passwords command ---
145
146func TestNewPasswordsCommand_Structure(t *testing.T) {
147 cmd := NewPasswordsCommand()
148
149 assert.NotNil(t, cmd)
150 assert.Equal(t, "passwords", cmd.Use)
151 assert.Equal(t, "Create an alternative password", cmd.Short)
152 assert.Equal(t, "Create an alternative password (interactive prompt)", cmd.Long)
153 assert.Equal(t, []string{"password", "pass", "pwd"}, cmd.Aliases)
154 assert.NotNil(t, cmd.Run)
155}
156
157func TestNewPasswordsCommand_ArgsValidation(t *testing.T) {
158 cmd := NewPasswordsCommand()

Callers

nothing calls this directly

Calls 1

NewPasswordsCommandFunction · 0.70

Tested by

no test coverage detected