Skip to content

Conversation

@vbreuss
Copy link
Member

@vbreuss vbreuss commented Sep 19, 2025

This PR refactors the FileSystemWatcherMock class to optimize performance by conditionally using reflection only when simulating non-native operating systems, rather than always using reflection for path manipulation.

Key Changes

  • Conditional reflection usage based on simulation mode to improve performance in native scenarios
  • Updated constructor parameters to use the Path property instead of local variables

@vbreuss vbreuss self-assigned this Sep 19, 2025
Copilot AI review requested due to automatic review settings September 19, 2025 16:53
@vbreuss vbreuss added the refactor A change or improvement without functional impact label Sep 19, 2025
Copy link

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 refactors the FileSystemWatcherMock class to optimize performance by conditionally using reflection only when simulating non-native operating systems, rather than always using reflection for path manipulation.

Key Changes

  • Conditional reflection usage based on simulation mode to improve performance in native scenarios
  • Updated constructor parameters to use the Path property instead of local variables

@sonarqubecloud
Copy link

@vbreuss vbreuss merged commit a1b6954 into main Sep 19, 2025
13 checks passed
@vbreuss vbreuss deleted the topic/only-use-hack-in-simulating-other-os branch September 19, 2025 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor A change or improvement without functional impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants