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

Function TestLoadNonExistent

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

Source from the content-addressed store, hash-verified

20}
21
22func TestLoadNonExistent(t *testing.T) {
23 cfg, err := Load(t.TempDir())
24 if err != nil {
25 t.Fatalf("unexpected error: %v", err)
26 }
27 if cfg.Worktree.Setup != "" {
28 t.Errorf("expected empty setup, got %q", cfg.Worktree.Setup)
29 }
30}
31
32func TestSaveAndLoad(t *testing.T) {
33 dir := t.TempDir()

Callers

nothing calls this directly

Calls 1

LoadFunction · 0.85

Tested by

no test coverage detected