Skip to content

Conversation

@arrayka
Copy link

@arrayka arrayka commented Jan 23, 2026

Why

  • To avoid writes to the real filesystem in unit tests.

What

  • Removed PhysicalFS references from tests and replaced with VirtualStorageProvider::new_overlay()
  • Added vfs::PhysicalFS::new to the list of disallowed methods in clippy.toml

@arrayka arrayka requested a review from hildebrandmw January 23, 2026 08:42
@arrayka arrayka changed the title Remove PhysicalFS references from tests and replace with VirtualStorageProvider::new_overlay() Enforce no real filesystem writes during unit tests Jan 23, 2026
Copy link
Contributor

Copilot AI commented Jan 23, 2026

@arrayka I've opened a new pull request, #701, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 3 commits January 23, 2026 01:49
* Initial plan

* Address PR feedback: revert comments and refactor test helper functions

Co-authored-by: arrayka <1551741+arrayka@users.noreply.github.com>

* Revert test_index_path() to return String and remove .to_string_lossy()

Co-authored-by: arrayka <1551741+arrayka@users.noreply.github.com>

* Remove test_index_os_path() and use test_index_path() instead

Co-authored-by: arrayka <1551741+arrayka@users.noreply.github.com>

* Revert commit 90934ad

Co-authored-by: arrayka <1551741+arrayka@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: arrayka <1551741+arrayka@users.noreply.github.com>
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.

2 participants