Repository navigation
test: add tests for lcov gaps - #305
Merged
Merged
Conversation
add tests/test_coverage_r13.cpp covering remaining lcov gaps Issue: V-9844 Log: add tests for lcov gaps
wyu71
force-pushed
the
agent/ut-bot/d9e664e11df1
branch
from
December 2, 2026 02:31
c6b66d3 to
d0a6f52
Compare
Reviewer's GuideTestsAdd R13 regression and coverage tests for lcov gaps across drawing tools, views, widgets, and graphics items.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
pengfeixx
approved these changes
Dec 2, 2026
|
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Round 13 UT: cover remaining lcov gaps
Summary
Add
tests/test_coverage_r13.cppwith 35 test cases covering sections A–E8 from the lcov gap analysis.Covered target lines
idrawtool.cpp:382-383— touch inside sensitive radius,doDecide==falsecerasertool.cpp:350—m_tempLines.size() > 2 → removeFirst()cselecttool.cpp:340-342—toolFinishwith picture item in selectGroupcselecttool.cpp:582-583—onStatusChangedEIdle with active proxy widgetcdrawscene.cpp:301-302, 316-337, 340-341— PageScene::event Touch branchesclefttoolbar.cpp:96-98, 100-101—DrawToolManager::setCurrentToolwhile EWorkingcpentool.cpp:222—toolStartwithECrayonPen → paintCrayonPencpentool.cpp:358-359—onStatusChangedEReady→EIdle with_layerscpolygonalstartool.cpp:156,cpolygontool.cpp:144,ctriangletool.cpp:125— Shift+Alt diagonal X negativecgraphicsview.cpp:1005-1045—slotOnPastetext branchcgraphicsview.cpp:796-797—contextMenuEventearly returncgraphicsview.cpp:882-893—showMenuscreen edge adjustmentcgraphicsview.cpp:262-284—wheelEventforwarded to proxy itemctextedit.cpp:217-222—onTextChangedwith small heightcspinbox.cpp:158—keyPressEventKey_Minus early returncattributeitemwidget.cpp:266-270—CColorSettingButton::paintEventalpha==0cattributemanagerwgt.cpp:419—onAttriWidgetValueChangednull senderdzoommenucombobox.cpp:136, 138—setCurrentIndexclampingcgraphicscutitem.cpp:84-85, 233/251, 471-472cgraphicsrectitem.cpp:219, 235-236— doScaling/testScalingcsizehandlerect.cpp:108—isFatherDraggingcpictureitem.cpp:135—operatingEndtoolEventType==3cgraphicspenitem.cpp:483-512—updateHandlesGeometryloop bodyciconbutton.cpp:62-63— checkLock prevents pressblurwidget.cpp:62,68,colorpanel.cpp:55,toolbutton.cpp:66idrawtoolevent.cpp:64-66, 87— fromQEvent with touch / emptyTest results
ccutwidget.cpp:603,607): skipped — offscreen mode cannot acquire lineEdit focusciconbutton.cpp:44): skipped — offscreen mode cannot acquire widget focuscolorpanel.cpp:256-258): skipped —ColorPanelconstructor requires aDApplicationinstance which is not available in the test environment (customApplicationsubclass)Notes
tests/test_coverage_r13.cppaddedpaintCrayonPencalled withspace=0causes infinite loop when positions differ; used same position for press/move to avoid this while still hitting line 222Summary by Sourcery
Expand unit-test coverage for remaining lcov gaps across drawing, view, graphics-item, and widget behavior.
Tests: