(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestIsConfigEmpty(t *testing.T) { |
| 13 | t.Run("zero value is empty", func(t *testing.T) { |
| 14 | if !isConfigEmpty(config.ProjectConfig{}) { |
| 15 | t.Fatal("expected zero-value config to be empty") |
| 16 | } |
| 17 | }) |
| 18 | |
| 19 | t.Run("new policy fields make config non-empty", func(t *testing.T) { |
| 20 | cfg := config.ProjectConfig{ |
| 21 | Mode: "structured", |
| 22 | } |
| 23 | if isConfigEmpty(cfg) { |
| 24 | t.Fatal("expected config with mode set to be non-empty") |
| 25 | } |
| 26 | }) |
| 27 | } |
| 28 | |
| 29 | func TestConfigShow_PrintsPolicyFields(t *testing.T) { |
| 30 | root := t.TempDir() |
nothing calls this directly
no test coverage detected