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

Function TestNewKeysCommand_Run_DuplicateKey

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

Source from the content-addressed store, hash-verified

342}
343
344func TestNewKeysCommand_Run_DuplicateKey(t *testing.T) {
345 cleanup := setupTempConfig(t)
346 defer cleanup()
347
348 cmd := NewKeysCommand()
349 cmd.Run(cmd, []string{"/home/user/.ssh/id_rsa"})
350
351 cmd2 := NewKeysCommand()
352 cmd2.Run(cmd2, []string{"/home/user/.ssh/id_rsa"})
353}
354
355func TestNewCachesCommand_NoArgsConstraint(t *testing.T) {
356 cmd := NewCachesCommand()

Callers

nothing calls this directly

Calls 2

setupTempConfigFunction · 0.70
NewKeysCommandFunction · 0.70

Tested by

no test coverage detected