MCPcopy Create free account
hub / github.com/JordanCoin/codemap / TestIsConfigEmpty

Function TestIsConfigEmpty

cmd/config_test.go:12–27  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func 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
29func TestConfigShow_PrintsPolicyFields(t *testing.T) {
30 root := t.TempDir()

Callers

nothing calls this directly

Calls 1

isConfigEmptyFunction · 0.85

Tested by

no test coverage detected