-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Implement Tree.RemoveStyle #748
Conversation
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.
Thanks for your contribution. I left a few comments.
e38d78f
to
5e1df21
Compare
4f7720f
to
77107e4
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #748 +/- ##
==========================================
+ Coverage 49.48% 50.00% +0.51%
==========================================
Files 69 69
Lines 10099 10224 +125
==========================================
+ Hits 4997 5112 +115
+ Misses 4587 4570 -17
- Partials 515 542 +27 ☔ View full report in Codecov by Sentry. |
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.
Thank you for your reflection. 👍
Next, we need to be sure that concurrent adding attributes and removing them is correct by adding test cases.
… RHT to support concurrency
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.
Thanks for your contribution. 👍
This commit added tests for Tree behavior in concurrency scenarios: Styles by 2 users (4 * 6 * 6 = 144 cases): - Ranges(4) - A = B - A contains B - A and B are intersecting - not intersecting - Operations for both A and B(6) - `RemoveStyle({'bold'})` - `Style({'bold': 'aa'})` - `Style({'bold': 'bb'})` - `RemoveStyle({'italic'})` - `Style({'italic': 'aa'})` - `Style({'italic': 'bb'})` Edit and Style (6 * 5 * 2 = 60 cases): - Ranges(6) - A = B - A contains B - B contains A - A and B are intersecting - B is next to A - A is next to B. - Operations for A(5) - Insert front of range - Insert back of range - Insert middle of range - Delete - Change - Operations for B(2) - `RemoveStyle({'bold'})` - `Style({'bold': 'aa'})`
What this PR does / why we need it:
Tree.RemoveStyle
.RHT
behavior in a concurrency scenario:RemoveStyle({'bold'})
,Style({'bold': 'aa'})
,Style({'bold': 'bb'})
,RemoveStyle({'italic'})
,Style({'italic': 'aa'})
,Style({'italic': 'bb'})
.RemoveStyle({'bold'})
,Style({'bold': 'aa'})
.Which issue(s) this PR fixes:
Addresses #626
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation:
Checklist: