(t *testing.T)
| 64 | } |
| 65 | |
| 66 | func TestContextBuilder_DynamicContext(t *testing.T) { |
| 67 | bl := NewBootstrapLoader(t.TempDir(), t.TempDir(), testLogger()) |
| 68 | ms := NewMemoryStore(t.TempDir(), testLogger()) |
| 69 | wsDir := t.TempDir() |
| 70 | cb := NewContextBuilder(bl, ms, wsDir) |
| 71 | |
| 72 | dyn := cb.BuildDynamicContext() |
| 73 | if !strings.Contains(dyn, "Current date and time") { |
| 74 | t.Errorf("expected dynamic context with date, got %q", dyn) |
| 75 | } |
| 76 | if !strings.Contains(dyn, "Current working directory: "+wsDir) { |
| 77 | t.Errorf("expected CWD in dynamic context, got %q", dyn) |
| 78 | } |
| 79 | if !strings.Contains(dyn, "IMPORTANT") { |
| 80 | t.Errorf("expected disambiguation instruction in dynamic context, got %q", dyn) |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | func TestContextBuilder_InvalidateCache(t *testing.T) { |
| 85 | wsDir := t.TempDir() |
nothing calls this directly
no test coverage detected