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

[File] Add Filesystem class for better testing #1291

Closed
wants to merge 1 commit into from

Conversation

bugwelle
Copy link
Collaborator

@bugwelle bugwelle commented Apr 23, 2021

No description provided.

@bugwelle
Copy link
Collaborator Author

The idea was to pass an explicit file system object to each class that handles files. However, I now think that having global functions or at least a singleton isn't bad in this case. Simply because we're not a library, we're an app. Having a central place that handles files is useful here.

The idea is to have a central place that properly logs file accesses.
The class could potentially be mocked as well.
@bugwelle
Copy link
Collaborator Author

Further ideas:

  • Should there be a central object that others can connect to?
  • Should we leave it at the current installFileSystemLog state? We can move to the before mentioned object quickly by adding it to FileSystemLog.cpp

@bugwelle
Copy link
Collaborator Author

bugwelle commented Jan 24, 2024

Discarding. See #847 (comment)

@bugwelle bugwelle closed this Jan 24, 2024
@bugwelle bugwelle deleted the mock-filesystem branch January 24, 2024 18:56
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

1 participant