-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Properly mark ModuleOwnership as Sendable #109
Conversation
6a153f9
to
5e22e62
Compare
@PSchmiedmayer we have some XCTRuntimePreconditions that are impossible to test anymore with property data isolation (e.g., checking that a constraint is satisfied). With the recent change to XCTRuntimeAssertions (StanfordBDHG/XCTRuntimeAssertions#14), the closures passed to XCTRuntimePrecondition are now properly annotated as Potential ways out:
What do you think is a sensible way going forward? |
@Supereg As discussed on Slack I would aim for a testing-specific but documented slightly unsafe behavior in XCTRuntimePrecondition to ensure that we can at least validate some assertions/preconditions within our codebases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to see this merged once we addressed the current testing issues 🚀
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #109 +/- ##
=======================================
Coverage 85.85% 85.85%
=======================================
Files 45 45
Lines 1392 1392
=======================================
Hits 1195 1195
Misses 197 197 Continue to review full report in Codecov by Sentry.
|
Properly mark ModuleOwnership as Sendable
♻️ Current situation & Problem
This PR adds a missing and forgotten Sendable conformance.
⚙️ Release Notes
📚 Documentation
✅ Testing
📝 Code of Conduct & Contributing Guidelines
By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines: