Move renderer tests to captured templates

This commit is contained in:
2026-11-05 19:59:34 +00:00
parent acaf2ccd8b
commit d78474a3bf
5 changed files with 125 additions and 50 deletions

View File

@@ -185,6 +185,12 @@ are deliberately migrated in Stage 6 rather than accommodated in production.
## Stage 6: Move Renderer Tests Onto Captured Templates
**Completed:** Renderer fixtures and benchmarks now compile captured templates
before rendering; invalid syntax, missing captures, cancellation, session, and
artifact behavior remain covered. Go 1.27.3 `go test ./internal/prompt
./internal/configuration ./internal/usecase` passed, resolving the deferred
repository and renderer checks.
**Finding:** 3. **Scope:** prompt rendering tests/benchmarks and their use-case/configuration callers.
1. Use `CompileTemplate` and a small `TemplateLookup` fixture, or a loaded