Commit 949d9d7
CRG blitz D→C: comprehensive test coverage for docmatrix
Test Suite Added (90+ tests):
- Unit tests: 50+ covering Parser, Renderer, AST, Config, Error paths
- Property tests: 7 proptest invariants (idempotence, preservation, safety)
- E2E tests: 20+ integration tests (round-trip, format support, metadata)
- Aspect tests: 18+ edge cases (scale, Unicode, safety, robustness)
- Benchmarks: 10 Criterion baselines (parse/render/round-trip throughput)
Test Files:
- crates/formatrix-core/tests/unit_test.rs (445 lines)
- crates/formatrix-core/tests/property_test.rs (120 lines)
- crates/formatrix-core/tests/e2e_test.rs (263 lines)
- crates/formatrix-core/tests/aspect_test.rs (280 lines)
- crates/formatrix-core/benches/format_bench.rs (180 lines)
Dependencies:
- Added criterion = "0.5" for Criterion benchmarking
- All tests compile successfully
Grade: CRG C (Comprehensive Test Coverage)
- ✅ Unit tests with public API coverage
- ✅ Smoke tests (basic functionality)
- ✅ Build verification (compilation)
- ✅ Property-based tests (invariants)
- ✅ E2E tests (workflows)
- ✅ Reflexive tests (round-trip)
- ✅ Contract tests (trait compliance)
- ✅ Aspect tests (edge cases, safety, scale)
- ✅ Benchmarks (baseline metrics)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e7aec64 commit 949d9d7
9 files changed
Lines changed: 1730 additions & 3 deletions
File tree
- .machine_readable/6a2
- crates/formatrix-core
- benches
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments