Repository navigation
test: add UT for tools/widgets/attribute panel coverage - #304
Merged
Merged
Conversation
Add test_tools_coverage_r12.cpp and test_text_attr_coverage_r12.cpp covering A1-A6, B1-B5, C1-C5, D1-D5, E1-E10 target lines: A1: idrawtool.cpp:382-383 (touch radius, selection tool) A2: cdrawscene.cpp:283-284 (doLeave interrupt) A3: cgraphicsview.cpp:796-797 (contextMenuEvent guard) A4: cviewmanagement.cpp:386 (IN_MOVE_SELF → EFileMoved) A5: cgraphicstextitem.cpp:150 (changToEditState show) A6: cpicturetool.cpp:179 (auto-fit already matched) B1: cselecttool.cpp:148 (cancel group button) B2: cselecttool.cpp:208-209 (press selected item) B3: cselecttool.cpp:340-342 (toolFinish picture attrs) B4: cselecttool.cpp:364-370 (double-click text edit) B5: cselecttool.cpp:582-583 (onStatusChanged EIdle) C1: ellipse/polygonalStar/polygon/triangle toolCreatItemFinish C2: Shift+Alt negative width proportional branch C3: creatItem right button returns nullptr C4: pen tool crayon/layers/getViewDefualtPen C5: eraser tempLines/group saveZ D1: ctexttool.cpp:280-283 (font family re-assign) D4: ctextedit.cpp:412-418 (selection format conflict) D5: ctextedit.cpp:217-222 (auto-wrap height) E1: ccuttool.cpp:101-102 (invalid var count) E2: ccuttool.cpp:426-429 (Enter key confirm) E3: ccutwidget.cpp:589-591 (height ratio table) E4: ccutwidget.cpp:603/607 (done click focus) E5: ccutwidget.cpp:207-210 (ParentChange non-window) E6: cattributemanagerwgt.cpp:290-302 (DISABLED - source bug at line 302) E7: cattributemanagerwgt.cpp:218 (hidden attr change show) E9: cattributeitemwidget.cpp:266-270/665/702 E10: cspinbox.cpp:158, toptoolbar.cpp:123, dzoommenucombobox.cpp:95-138 Issue: V-9675 Log: add UT for tools/widgets/attribute panel coverage
wyu71
force-pushed
the
agent/ut-bot/fa67fdce5eac
branch
from
December 1, 2026 03:45
6f962ef to
a30db6a
Compare
Reviewer's GuideTestsAdd coverage tests for drawing-tool behavior, including selection, shape creation, pen, and eraser paths.
Add coverage tests for text editing, cut controls, and attribute-panel behavior.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
pengfeixx
approved these changes
Dec 1, 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.
Add test_tools_coverage_r12.cpp and test_text_attr_coverage_r12.cpp
covering A1-A6, B1-B5, C1-C5, D1-D5, E1-E10 target lines:
A1: idrawtool.cpp:382-383 (touch radius, selection tool)
A2: cdrawscene.cpp:283-284 (doLeave interrupt)
A3: cgraphicsview.cpp:796-797 (contextMenuEvent guard)
A4: cviewmanagement.cpp:386 (IN_MOVE_SELF → EFileMoved)
A5: cgraphicstextitem.cpp:150 (changToEditState show)
A6: cpicturetool.cpp:179 (auto-fit already matched)
B1: cselecttool.cpp:148 (cancel group button)
B2: cselecttool.cpp:208-209 (press selected item)
B3: cselecttool.cpp:340-342 (toolFinish picture attrs)
B4: cselecttool.cpp:364-370 (double-click text edit)
B5: cselecttool.cpp:582-583 (onStatusChanged EIdle)
C1: ellipse/polygonalStar/polygon/triangle toolCreatItemFinish
C2: Shift+Alt negative width proportional branch
C3: creatItem right button returns nullptr
C4: pen tool crayon/layers/getViewDefualtPen
C5: eraser tempLines/group saveZ
D1: ctexttool.cpp:280-283 (font family re-assign)
D4: ctextedit.cpp:412-418 (selection format conflict)
D5: ctextedit.cpp:217-222 (auto-wrap height)
E1: ccuttool.cpp:101-102 (invalid var count)
E2: ccuttool.cpp:426-429 (Enter key confirm)
E3: ccutwidget.cpp:589-591 (height ratio table)
E4: ccutwidget.cpp:603/607 (done click focus)
E5: ccutwidget.cpp:207-210 (ParentChange non-window)
E6: cattributemanagerwgt.cpp:290-302 (DISABLED - source bug at line 302)
E7: cattributemanagerwgt.cpp:218 (hidden attr change show)
E9: cattributeitemwidget.cpp:266-270/665/702
E10: cspinbox.cpp:158, toptoolbar.cpp:123, dzoommenucombobox.cpp:95-138
Issue: V-9675
Log: add UT for tools/widgets/attribute panel coverage
Summary by Sourcery
Expand unit-test coverage for drawing tools, text editing, and attribute-panel interactions.
Tests: