MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestDefault

Function TestDefault

internal/config/config_test.go:9–20  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestDefault(t *testing.T) {
10 cfg := Default()
11 if cfg.Worktree.Setup != "" {
12 t.Errorf("expected empty setup, got %q", cfg.Worktree.Setup)
13 }
14 if cfg.OnComplete.Push {
15 t.Error("expected Push to be false")
16 }
17 if cfg.OnComplete.CreatePR {
18 t.Error("expected CreatePR to be false")
19 }
20}
21
22func TestLoadNonExistent(t *testing.T) {
23 cfg, err := Load(t.TempDir())

Callers

nothing calls this directly

Calls 1

DefaultFunction · 0.85

Tested by

no test coverage detected