Skip to content
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

Add test coverage for LinkLabel.LinkCollection #11357

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Philip-Wang01
Copy link

@Philip-Wang01 Philip-Wang01 commented May 11, 2024

Related #10453

Proposed changes

  • Add unit tests for LinkLabel.LinkCollection to test its properties: IsReadOnly, IndexOf, IndexOfKey

  • Add unit tests for LinkLabel.LinkCollection to test its method: Add, Contains, ContainsKey, Remove, RemoveByKey

Customer Impact

  • None

Regression?

  • No

Risk

  • Minimal

Test methodology

  • Unit tests
Microsoft Reviewers: Open in CodeFlow

Copy link

codecov bot commented May 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.30362%. Comparing base (9f8f671) to head (fe3714d).
Report is 31 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #11357         +/-   ##
===================================================
+ Coverage   74.27085%   74.30362%   +0.03276%     
===================================================
  Files           3025        3027          +2     
  Lines         626861      627135        +274     
  Branches       46742       46756         +14     
===================================================
+ Hits          465575      465984        +409     
+ Misses        157937      157809        -128     
+ Partials        3349        3342          -7     
Flag Coverage Δ
Debug 74.30362% <100.00000%> (+0.03276%) ⬆️
integration 18.00034% <ø> (+0.00863%) ⬆️
production 47.05308% <ø> (+0.05771%) ⬆️
test 96.98753% <100.00000%> (-0.00662%) ⬇️
unit 44.00315% <ø> (+0.03311%) ⬆️

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

@elachlan elachlan added the waiting-review This item is waiting on review by one or more members of team label May 12, 2024
@Zheng-Li01
Copy link
Member

For new added LinkCollectionTest.cs file, always named it to LinkCollectionTests.cs

@Zheng-Li01 Zheng-Li01 added 📭 waiting-author-feedback The team requires more information from the author and removed waiting-review This item is waiting on review by one or more members of team labels May 13, 2024
@dotnet-policy-service dotnet-policy-service bot removed the 📭 waiting-author-feedback The team requires more information from the author label May 16, 2024
@Tanya-Solyanik Tanya-Solyanik added 📭 waiting-author-feedback The team requires more information from the author and removed 📭 waiting-author-feedback The team requires more information from the author labels May 21, 2024
lonitra
lonitra previously approved these changes May 22, 2024
Copy link
Member

@lonitra lonitra left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants