Skip to content

Commit 1a59032

Browse files
alanbldclaude
andcommitted
docs: Update CLAUDE.md with Sprint 22 completion and Sprint 23 plan
- Add Sprint 22 to completed sprints (document.rs, +28 tests) - Update current status: 536 ooxml tests, document.rs at 71 tests - Set Sprint 23 target: extract.rs (45 tests / 2029 lines) - Document coverage gaps for Sprint 23 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 68449e8 commit 1a59032

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

CLAUDE.md

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -262,27 +262,39 @@ cargo test --workspace
262262
| 19 | style_map.rs | +17 (StyleContract, enums) | `3358ef7` |
263263
| 20 | style_contract_validator.rs | +15 | `b1a22f7` |
264264
| 21 | writer.rs | +19 (comments, content types, cover) | `fc9b8f3` |
265+
| 22 | document.rs | +28 (formatting, images, DrawingML) | `8541e69` |
265266

266-
**Current Status (after Sprint 21):**
267-
- Total workspace tests: ~1,420
268-
- `utf8dok-ooxml` tests: 508
269-
- `writer.rs`: 72 tests / 4113 lines
267+
**Current Status (after Sprint 22):**
268+
- Total workspace tests: ~1,450
269+
- `utf8dok-ooxml` tests: 536
270+
- `document.rs`: 71 tests / 2818 lines
270271

271-
**Next: Sprint 22**
272+
**Next: Sprint 23 - extract.rs**
273+
274+
Target file: `extract.rs` (45 tests / 2029 lines, ~45 lines/test)
275+
276+
Coverage gaps:
277+
- Style Contract building (`build_style_contract`, `extract_anchors`, `extract_hyperlinks`)
278+
- AsciiDoc conversion (headings, lists, code blocks, tables)
279+
- Image conversion (`convert_image` with dimensions, alt text, relationships)
280+
- Run merging (`merge_and_convert_runs`)
272281

273282
To continue, run:
274283
```bash
275284
# Check test density per file
276285
for f in crates/utf8dok-ooxml/src/*.rs; do
277286
tests=$(grep -c "#\[test\]" "$f" 2>/dev/null || echo 0)
278287
lines=$(wc -l < "$f")
279-
echo "$tests tests / $lines lines - $f"
280-
done | sort -t/ -k1 -n
281-
282-
# Files with potential for more coverage:
283-
# - document.rs: 43 tests / 1944 lines (~1 per 45 lines)
284-
# - styles.rs: 34 tests / 1321 lines (~1 per 39 lines)
285-
# - relationships.rs: 26 tests / 840 lines (~1 per 32 lines)
288+
if [ "$tests" -gt 0 ]; then
289+
ratio=$((lines / tests))
290+
echo "$ratio lines/test | $tests tests / $lines lines - $(basename $f)"
291+
fi
292+
done | sort -t'|' -k1 -rn | head -10
293+
294+
# Priority files for coverage:
295+
# - extract.rs: 45 tests / 2029 lines (~45 lines/test)
296+
# - styles.rs: 34 tests / 1321 lines (~39 lines/test)
297+
# - conversion.rs: 44 tests / 1487 lines (~33 lines/test)
286298
```
287299

288300
**Key test utilities:**

0 commit comments

Comments
 (0)