Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add code coverage for SelectionUIHandler.cs file #13013

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

Merged
merged 2 commits into from
Feb 26, 2025

Conversation

Olina-Zhang
Copy link
Member

@Olina-Zhang Olina-Zhang commented Feb 24, 2025

Related #10773

Proposed changes

  • Add unit test file: SelectionUIHandlerTests.cs for public methods of the SelectionUIHandler.cs.
  • Enable nullability in SelectionUIHandlerTests.cs file.
  • Simplified the ToolStripCollectionEditorTest.cs file by creating mock services directly
Microsoft Reviewers: Open in CodeFlow

Copy link

codecov bot commented Feb 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.08393%. Comparing base (227fd3b) to head (35f3e22).
Report is 13 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #13013         +/-   ##
===================================================
+ Coverage   76.04966%   76.08393%   +0.03426%     
===================================================
  Files           3269        3271          +2     
  Lines         643544      643605         +61     
  Branches       47429       47433          +4     
===================================================
+ Hits          489413      489680        +267     
+ Misses        150566      150354        -212     
- Partials        3565        3571          +6     
Flag Coverage Δ
Debug 76.08393% <100.00000%> (+0.03426%) ⬆️
integration 18.02912% <ø> (-0.00808%) ⬇️
production 50.08584% <ø> (+0.05442%) ⬆️
test 96.95258% <100.00000%> (+0.01532%) ⬆️
unit 47.54695% <ø> (+0.05972%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

@Olina-Zhang Olina-Zhang removed the waiting-author-feedback The team requires more information from the author label Feb 25, 2025
Copy link
Member

@ricardobossan ricardobossan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Copy link
Member

@Tanya-Solyanik Tanya-Solyanik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Tanya-Solyanik Tanya-Solyanik merged commit d53d820 into dotnet:main Feb 26, 2025
8 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0 Preview3 milestone Feb 26, 2025
@Olina-Zhang Olina-Zhang deleted the UnitTest_SelectionUIHandler branch February 26, 2025 06:40
LeafShi1 pushed a commit to LeafShi1/winforms that referenced this pull request Mar 6, 2025
Related dotnet#10773

Proposed changes
Add unit test file: SelectionUIHandlerTests.cs for public methods of the SelectionUIHandler.cs.
Enable nullability in SelectionUIHandlerTests.cs file.
Simplified the ToolStripCollectionEditorTest.cs file by creating mock services directly
@github-actions github-actions bot locked and limited conversation to collaborators Mar 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants