Skip to content

Cleanup filter implementation#15629

Merged
nohwnd merged 2 commits into
mainfrom
dev/ygerges/filter-cleanup
Apr 2, 2026
Merged

Cleanup filter implementation#15629
nohwnd merged 2 commits into
mainfrom
dev/ygerges/filter-cleanup

Conversation

@Youssef1313
Copy link
Copy Markdown
Member

Just code cleanup.

Copilot AI review requested due to automatic review settings April 1, 2026 17:06
Copy link
Copy Markdown
Contributor

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

Refactors and modernizes the test case filtering implementation with expression-bodied members, readonly/get-only properties, and small logic simplifications.

Changes:

  • Simplified property implementations (expression-bodied / get-only auto-properties).
  • Tightened types (e.g., sealed classes) and modernized null checks / comparisons.
  • Refactored evaluation/iteration logic within filter expression processing.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/Microsoft.TestPlatform.Common/Filtering/TestCaseFilterExpression.cs Simplifies property getters and streamlines validity/evaluation branching.
src/Microsoft.TestPlatform.Common/Filtering/FilterExpressionWrapper.cs Converts fields/setters to get-only properties; reorganizes fast-filter members.
src/Microsoft.TestPlatform.Common/Filtering/FilterExpression.cs Refactors expression operations and iteration logic; minor correctness/perf tweaks.
src/Microsoft.TestPlatform.Common/Filtering/FastFilter.cs Reorders members; keeps API equivalent while reorganizing property declarations.
src/Microsoft.TestPlatform.Common/Filtering/Condition.cs Seals the type and converts properties to get-only with constructor initialization.

Comment thread src/Microsoft.TestPlatform.Common/Filtering/FilterExpression.cs
Copilot AI review requested due to automatic review settings April 1, 2026 17:26
Copy link
Copy Markdown
Contributor

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

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

@nohwnd nohwnd merged commit 47888c1 into main Apr 2, 2026
6 checks passed
@nohwnd nohwnd deleted the dev/ygerges/filter-cleanup branch April 2, 2026 08:28
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.

3 participants