dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.28k stars 954 forks source link

Updated 6 unit test cases to fully coverage code lines in DateTimePicker #11534

Closed John-Qiao closed 4 days ago

John-Qiao commented 2 weeks ago

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

Proposed changes

  1. CalendarFont
  2. Checked
  3. CustomFormat
  4. MaximumDateTime
  5. MinDate
  6. Value
Microsoft Reviewers: Open in CodeFlow
codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 74.47826%. Comparing base (fc56416) to head (16aae1d). Report is 48 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #11534 +/- ## =================================================== + Coverage 74.39859% 74.47826% +0.07967% =================================================== Files 3032 3040 +8 Lines 628149 629150 +1001 Branches 46828 46837 +9 =================================================== + Hits 467334 468580 +1246 + Misses 157465 157221 -244 + Partials 3350 3349 -1 ``` | [Flag](https://app.codecov.io/gh/dotnet/winforms/pull/11534/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | Coverage Δ | | |---|---|---| | [Debug](https://app.codecov.io/gh/dotnet/winforms/pull/11534/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `74.47826% <100.00000%> (+0.07967%)` | :arrow_up: | | [integration](https://app.codecov.io/gh/dotnet/winforms/pull/11534/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `17.98028% <ø> (-0.02028%)` | :arrow_down: | | [production](https://app.codecov.io/gh/dotnet/winforms/pull/11534/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `47.35819% <ø> (+0.11122%)` | :arrow_up: | | [test](https://app.codecov.io/gh/dotnet/winforms/pull/11534/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `96.95270% <100.00000%> (-0.01403%)` | :arrow_down: | | [unit](https://app.codecov.io/gh/dotnet/winforms/pull/11534/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `44.34285% <ø> (+0.11390%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet#carryforward-flags-in-the-pull-request-comment) to find out more.