Skip to content
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

core: (HasParent) allow no parent for testing #3323

Merged
merged 2 commits into from
Oct 18, 2024
Merged

Conversation

alexarice
Copy link
Collaborator

Allows operations with the HasParent trait to verify when detached. This makes it easier to write unit tests for these operations, as there is no need to nest them within other operations.

@alexarice alexarice self-assigned this Oct 18, 2024
@alexarice alexarice added testing PRs that modify tests core xDSL core (ir, textual format, ...) labels Oct 18, 2024
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.04%. Comparing base (bf7231d) to head (5bd2278).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3323      +/-   ##
==========================================
- Coverage   90.04%   90.04%   -0.01%     
==========================================
  Files         445      445              
  Lines       56182    56220      +38     
  Branches     5391     5399       +8     
==========================================
+ Hits        50588    50621      +33     
- Misses       4179     4180       +1     
- Partials     1415     1419       +4     

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

@alexarice alexarice merged commit 7c86cfb into main Oct 18, 2024
14 checks passed
@alexarice alexarice deleted the alexarice/has-parent branch October 18, 2024 19:21
EdmundGoodman pushed a commit to EdmundGoodman/xdsl that referenced this pull request Dec 6, 2024
Allows operations with the `HasParent` trait to verify when detached.
This makes it easier to write unit tests for these operations, as there
is no need to nest them within other operations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core xDSL core (ir, textual format, ...) testing PRs that modify tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants