Add glue option to combine()#535
Add glue option to combine()#535adam-urbanczyk merged 11 commits intoCadQuery:masterfrom bragostin:master
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 |
|
Merging, thanks for the contribution @bragostin ! |
This is the pull request solving issue #533