test: add SVGDraftman direct visitor tests #18

Merged
thib8956 merged 1 commits from issue-9/svg-draftman-tests into master 2026-03-27 17:19:14 +00:00
Owner

Summary

  • Add 27 unit tests for SVGDraftman, testing each visit*() method in isolation with @Nested test classes.
  • Covers rectangle, circle, triangle, text, and collection visitors with attribute combinations (filled/stroked/both/neither), null color fallback, empty and nested collections, and generateSVG wrapper output.
  • All 63 tests pass (27 new + 36 existing).

Closes #9

## Summary - Add 27 unit tests for `SVGDraftman`, testing each `visit*()` method in isolation with `@Nested` test classes. - Covers rectangle, circle, triangle, text, and collection visitors with attribute combinations (filled/stroked/both/neither), null color fallback, empty and nested collections, and `generateSVG` wrapper output. - All 63 tests pass (27 new + 36 existing). Closes #9
thib8956 added 1 commit 2026-03-27 17:05:49 +00:00
test: add SVGDraftman direct visitor tests
All checks were successful
CI / build-and-test (pull_request) Successful in 18s
3623928bb6
Add 27 tests covering each visit*() method in isolation:
- visitRectangle: dimensions, filled/stroked/both/neither color combos
- visitCircle: center calculation, fill/stroke variants
- visitTriangle: polygon points, fill style, stroke style
- visitText: content, position offset, font attributes, color fallbacks
- visitCollection: empty, multiple children, nested collections
- generateSVG: XML declaration, SVG namespace, closing tag, shape content

Closes #9
thib8956 force-pushed issue-9/svg-draftman-tests from a5ea4ee79a to 3623928bb6 2026-03-27 17:05:49 +00:00 Compare
thib8956 merged commit 2ccea4b107 into master 2026-03-27 17:19:14 +00:00
thib8956 deleted branch issue-9/svg-draftman-tests 2026-03-27 17:19:14 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: thib8956/new-shapes#18