Skip to content

Add code coverage for UpDownBase.UpDownBaseAccessibleObject #13498

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

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

Conversation

MelonWang1
Copy link
Contributor

@MelonWang1 MelonWang1 commented May 21, 2025

Related #13442

Proposed changes

  • Add unit test file: UpDownBase.UpDownBaseAccessibleObjectTests.cs for public methods of the UpDownBase.UpDownBaseAccessibleObject.cs.cs
Microsoft Reviewers: Open in CodeFlow

Copy link

codecov bot commented May 21, 2025

Codecov Report

Attention: Patch coverage is 82.35294% with 3 lines in your changes missing coverage. Please review.

Project coverage is 76.59994%. Comparing base (8484b55) to head (050055d).
Report is 8 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #13498         +/-   ##
===================================================
+ Coverage   76.59415%   76.59994%   +0.00579%     
===================================================
  Files           3230        3231          +1     
  Lines         639165      639182         +17     
  Branches       47297       47297                 
===================================================
+ Hits          489563      489613         +50     
+ Misses        146025      145995         -30     
+ Partials        3577        3574          -3     
Flag Coverage Δ
Debug 76.59994% <82.35294%> (+0.00579%) ⬆️
integration 18.79551% <ø> (+0.01259%) ⬆️
production 51.00835% <ø> (+0.01256%) ⬆️
test 97.40338% <82.35294%> (-0.00074%) ⬇️
unit 48.41351% <ø> (+0.01221%) ⬆️

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

Pull Request Overview

This PR adds unit tests to improve code coverage for the UpDownBase.UpDownBaseAccessibleObject class by verifying its GetChild and GetChildCount behavior.

  • Introduces a new test file for UpDownBase.UpDownBaseAccessibleObject
  • Covers valid and invalid index cases for GetChild
  • Verifies the child count via GetChildCount

@ricardobossan ricardobossan added waiting-author-feedback The team requires more information from the author waiting-review This item is waiting on review by one or more members of team labels May 21, 2025
@dotnet-policy-service dotnet-policy-service bot removed the waiting-author-feedback The team requires more information from the author label May 22, 2025
@dotnet-policy-service dotnet-policy-service bot added the waiting-author-feedback The team requires more information from the author label May 22, 2025
@dotnet-policy-service dotnet-policy-service bot removed the waiting-author-feedback The team requires more information from the author label May 23, 2025
@ricardobossan ricardobossan added the waiting-author-feedback The team requires more information from the author label May 23, 2025
@dotnet-policy-service dotnet-policy-service bot removed the waiting-author-feedback The team requires more information from the author label May 26, 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-test coverage waiting-review This item is waiting on review by one or more members of team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants