Skip to content

fix(geometry): support CGRect operations without CoreGraphics - #13

Merged
Kyle-Ye merged 2 commits into
mainfrom
feature/path_shape
Nov 7, 2026
Merged

Kyle-Ye merged 2 commits into
mainfrom
feature/path_shape

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Darwin's standalone CGRect extension lacks the bounds and rectangle operations needed by graphics clients. Add midpoint, null, standardization, containment, intersection, and union APIs, and correct bounds for negative sizes while keeping OpenCoreGraphics independent of the system CoreGraphics module.

Add shared tests for negative sizes, null rectangles, edge containment, and degenerate intersections. Boundary-intersection expectations follow Darwin CoreGraphics for the OpenCoreGraphics implementation and record the Swift Foundation behavior used on Linux.

Local validation passed 18 geometry tests with each macOS backend and all 56 tests in debug and release on Linux with Swift 6.3.3.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T10:17:33.522208Z df291e6 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codecov-commenter

codecov-commenter commented Nov 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.26%. Comparing base (3440823) to head (df291e6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #13      +/-   ##
==========================================
+ Coverage   81.32%   84.26%   +2.94%     
==========================================
  Files          19       20       +1     
  Lines        1012     1087      +75     
==========================================
+ Hits          823      916      +93     
+ Misses        189      171      -18     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Kyle-Ye
Kyle-Ye merged commit de4866d into main Nov 7, 2026
3 checks passed
@Kyle-Ye
Kyle-Ye deleted the feature/path_shape branch November 7, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants