(t *testing.T)
| 239 | } |
| 240 | |
| 241 | func 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 |
nothing calls this directly
no test coverage detected