winforms icon indicating copy to clipboard operation
winforms copied to clipboard

Add code coverage for RichTextBox

Open Zheng-Li01 opened this issue 11 months ago • 2 comments

related https://github.com/dotnet/winforms/issues/10453

Proposed changes

  • Add unit tests for RichTextBox to test its DrawToBitmap()/LoadFile()/SaveFile()/Paste() methods

Customer Impact

  • None

Regression?

  • No

Risk

  • Minimal

Test methodology

  • Unit tests
Microsoft Reviewers: Open in CodeFlow

Zheng-Li01 avatar Mar 05 '24 08:03 Zheng-Li01

Codecov Report

Attention: Patch coverage is 97.97980% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 73.23597%. Comparing base (5e635c5) to head (f82ba91). Report is 34 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #10994         +/-   ##
===================================================
+ Coverage   73.19881%   73.23597%   +0.03716%     
===================================================
  Files           3097        3096          -1     
  Lines         634289      633817        -472     
  Branches       47364       47338         -26     
===================================================
- Hits          464292      464182        -110     
+ Misses        166453      166089        -364     
- Partials        3544        3546          +2     
Flag Coverage Δ
Debug 73.23597% <97.97980%> (+0.03716%) :arrow_up:
integration 18.42168% <ø> (-0.02558%) :arrow_down:
production 46.72061% <ø> (+0.01158%) :arrow_up:
test 94.98148% <97.97980%> (+0.01015%) :arrow_up:
unit 43.60598% <ø> (-0.00078%) :arrow_down:

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

codecov[bot] avatar Mar 05 '24 09:03 codecov[bot]

LGTM

ricardobossan avatar Mar 07 '24 11:03 ricardobossan