(t *testing.T)
| 32 | } |
| 33 | |
| 34 | func TestLoadBootstrapContent_Priority(t *testing.T) { |
| 35 | workspace := t.TempDir() |
| 36 | global := t.TempDir() |
| 37 | _ = os.WriteFile(filepath.Join(workspace, "SOUL.md"), []byte("workspace soul"), 0o644) |
| 38 | _ = os.WriteFile(filepath.Join(global, "SOUL.md"), []byte("global soul"), 0o644) |
| 39 | |
| 40 | bl := NewBootstrapLoader(workspace, global, testLogger()) |
| 41 | content, ok := bl.LoadFile("SOUL.md") |
| 42 | if !ok { |
| 43 | t.Fatal("expected to find SOUL.md") |
| 44 | } |
| 45 | if content != "workspace soul" { |
| 46 | t.Errorf("expected workspace to override global, got %q", content) |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | func TestLoadBootstrapContent_GlobalFallback(t *testing.T) { |
| 51 | workspace := t.TempDir() |
nothing calls this directly
no test coverage detected