(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func TestLoadBootstrapContent_GlobalFallback(t *testing.T) { |
| 51 | workspace := t.TempDir() |
| 52 | global := t.TempDir() |
| 53 | _ = os.WriteFile(filepath.Join(global, "USER.md"), []byte("global user"), 0o644) |
| 54 | |
| 55 | bl := NewBootstrapLoader(workspace, global, testLogger()) |
| 56 | content, ok := bl.LoadFile("USER.md") |
| 57 | if !ok { |
| 58 | t.Fatal("expected to find USER.md from global") |
| 59 | } |
| 60 | if content != "global user" { |
| 61 | t.Errorf("expected 'global user', got %q", content) |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | func TestLoadBootstrapContent_MissingFiles(t *testing.T) { |
| 66 | bl := NewBootstrapLoader(t.TempDir(), t.TempDir(), testLogger()) |
nothing calls this directly
no test coverage detected