(t *testing.T)
| 16 | } |
| 17 | |
| 18 | func TestLoadBootstrapContent_AllFiles(t *testing.T) { |
| 19 | dir := t.TempDir() |
| 20 | _ = os.WriteFile(filepath.Join(dir, "SOUL.md"), []byte("Be helpful"), 0o644) |
| 21 | _ = os.WriteFile(filepath.Join(dir, "USER.md"), []byte("I prefer Go"), 0o644) |
| 22 | |
| 23 | bl := NewBootstrapLoader(dir, "", testLogger()) |
| 24 | content := bl.LoadBootstrapContent() |
| 25 | |
| 26 | if !strings.Contains(content, "Be helpful") { |
| 27 | t.Error("expected SOUL.md content") |
| 28 | } |
| 29 | if !strings.Contains(content, "I prefer Go") { |
| 30 | t.Error("expected USER.md content") |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | func TestLoadBootstrapContent_Priority(t *testing.T) { |
| 35 | workspace := t.TempDir() |
nothing calls this directly
no test coverage detected