-
Notifications
You must be signed in to change notification settings - Fork 291
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
Add glue option to combine() #535
Conversation
Add glue option to combine()
Add test of glue=True to combine()
update testcombine()
Reformat combine()
Codecov Report
@@ Coverage Diff @@
## master #535 +/- ##
==========================================
+ Coverage 93.94% 94.17% +0.22%
==========================================
Files 30 30
Lines 6115 6210 +95
Branches 640 655 +15
==========================================
+ Hits 5745 5848 +103
+ Misses 235 224 -11
- Partials 135 138 +3
Continue to review full report at Codecov.
|
Added tol=None to testCombine()
Codecov complains that "Added line #L2874 was not covered by tests" in cadquery/cq.py#L2874 objects1.combine(glue=True, tol=None)
self.assertEqual(11, objects1.faces().size()) to cover the new |
@bragostin Unless it's something serious, I take what codecov says with a grain of salt (not too seriously). It often complains about things that are either non-issues or not anything major. |
Codecov does not make that kind of mistakes AFAIK. Probably you have only one item (cq. Compound) in objects. Just put a breakpoint in this test and verify yourself. |
Correct testCombine()
Black formatting
You are right @adam-urbanczyk , the problem was that I had one Compound only in objects, now Codecov passes. |
You touched this line and that's why it was taken into account in the delta coverage calculation. |
BTW: is this ready? |
@adam-urbanczyk yes it is |
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 @bragostin !
Merging, thanks for the contribution @bragostin ! |
This is the pull request solving issue #533