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

Function TestNewKeysCommand_ArgsValidation

cmd/create/create_test.go:180–191  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

178}
179
180func TestNewKeysCommand_ArgsValidation(t *testing.T) {
181 cmd := NewKeysCommand()
182
183 err := cmd.Args(cmd, []string{})
184 assert.Error(t, err)
185
186 err = cmd.Args(cmd, []string{"/path/to/key"})
187 assert.NoError(t, err)
188
189 err = cmd.Args(cmd, []string{"/path/to/key", "extra"})
190 assert.Error(t, err)
191}
192
193func TestNewKeysCommand_Run(t *testing.T) {
194 cleanup := setupTempConfig(t)

Callers

nothing calls this directly

Calls 1

NewKeysCommandFunction · 0.70

Tested by

no test coverage detected