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

Provide a way to mock a whole dir or tree. #135

Open
toddr opened this issue Feb 11, 2022 · 0 comments
Open

Provide a way to mock a whole dir or tree. #135

toddr opened this issue Feb 11, 2022 · 0 comments
Labels
Feature Request New feature or request

Comments

@toddr
Copy link
Member

toddr commented Feb 11, 2022

We have a problem that one of the common algorithms this code does not support is when we open a temp file next to where we'll be putting the real file, write to it, then rename it into place as the real file. T:MF doesn't have a way to mock this sort of behavior.

Idea have been thrown out:

  1. T::MF->dir(...) declares that anything created in that path is to be mocked.
  2. T::MF->tree(...) declares a whole tree to be mocked.
  3. T::MF->whole_dir(...)

These break the model of how we've been doing mocked files up to now. Maybe there's a way to make #115 pull off this need?

@toddr toddr added the Feature Request New feature or request label Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request
Development

No branches or pull requests

1 participant