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

Function TestNewKeysCommand_Structure

cmd/create/create_test.go:169–178  ·  view source on GitHub ↗

--- Keys command ---

(t *testing.T)

Source from the content-addressed store, hash-verified

167// --- Keys command ---
168
169func TestNewKeysCommand_Structure(t *testing.T) {
170 cmd := NewKeysCommand()
171
172 assert.NotNil(t, cmd)
173 assert.Equal(t, "keys <keyFilePath>", cmd.Use)
174 assert.Equal(t, "Create an alternative key file path", cmd.Short)
175 assert.Equal(t, "Create an alternative key file path", cmd.Long)
176 assert.Equal(t, []string{"key"}, cmd.Aliases)
177 assert.NotNil(t, cmd.Run)
178}
179
180func TestNewKeysCommand_ArgsValidation(t *testing.T) {
181 cmd := NewKeysCommand()

Callers

nothing calls this directly

Calls 1

NewKeysCommandFunction · 0.70

Tested by

no test coverage detected