Repository navigation
test: add unit tests for lcov coverage gaps - #306
Conversation
789281a to
9301e7a
Compare
Add tests/test_coverage_r14.cpp covering remaining lcov gaps: - idrawtool.cpp:382-383 (toolDoUpdate doDecide==false) - cselecttool.cpp:340-342 (toolFinish picture item attributes) - cattributeitemwidget.cpp:266-270 (paintFillBorder alpha==0) - colorpanel.cpp:256-258, 277-278 (previewedColorChanged + alphaChanged) - idrawtool.cpp:577-578, 188-189, 550-551 + cdrawscene.cpp:335 (edit mode double-click paths) - cgraphicspenitem.cpp:490-509 (updateHandlesGeometry all directions) - cgraphicslineitem.cpp:279-306, 608 (Rotation handle + empty line) - cpictureitem.cpp:265 (getGraphicsUnit _srcByteArry copy) - cgraphicspolygonalstaritem.cpp:178, 188, 223 (cache reset paths) - cgraphicstextitem.cpp:458-459 (paint invalid rect) - cdrawtoolfactory.cpp:94-95, 151 (installTool nullptr + loadToolPlugin) - ctexttool.cpp:168-171, 184, 201-202 (restoreItemsFontFamily + isTextEnableUndo + toolCreatItemFinish) - cdrawscene.cpp:404, 455, 467-469 (group tree collection) Issue: V-9958 Log: all tests pass (offscreen).
9301e7a to
acbf248
Compare
Reviewer's GuideTestsAdd coverage-gap tests that drive drawing tools, graphics items, widgets, and scene behavior, with the helper routines and related test setup in the same file.
Include the draw-tool interface needed by the test janitor and interrupt any tool left working so it cannot swallow shortcuts in later tests.
Isolate the system D-Bus during tests to prevent FileArmor prompts and keep file-access tests independent of host services.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: pengfeixx, wyu71 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Add tests/test_coverage_r14.cpp covering remaining lcov gaps:
Issue: V-9958
Log: all tests pass (offscreen).
Summary by Sourcery
Expand unit-test coverage for remaining lcov gaps and improve isolation between tests.
Tests: