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

Function TestNewKeysCommand_Run_WithArg

cmd/get/get_test.go:241–250  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

239}
240
241func TestNewKeysCommand_Run_WithArg(t *testing.T) {
242 cleanup := setupTempConfig(t)
243 defer cleanup()
244
245 cmd := NewKeysCommand()
246 output := captureOutput(t, func() {
247 cmd.Run(cmd, []string{"/path/to/key"})
248 })
249 assert.Contains(t, output, "INDEX\tKEY")
250}
251
252// --- Caches command ---
253

Callers

nothing calls this directly

Calls 3

setupTempConfigFunction · 0.70
NewKeysCommandFunction · 0.70
captureOutputFunction · 0.70

Tested by

no test coverage detected