(t *testing.T)
| 86 | } |
| 87 | |
| 88 | func TestConfigShowNoConfigFile(t *testing.T) { |
| 89 | out := captureOutput(func() { configShow(t.TempDir()) }) |
| 90 | if !strings.Contains(out, "No config file found.") { |
| 91 | t.Fatalf("expected missing-config guidance, got:\n%s", out) |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | func TestConfigShowMalformedConfig(t *testing.T) { |
| 96 | root := t.TempDir() |
nothing calls this directly
no test coverage detected