3 ms·
You need to mount and unmount fikesystems to do that. Take a look at the library mentioned,afero, and you'll see how nice it handles working with the file syst
by tayo42 1y ago
You need to mount and unmount fikesystems to do that.
Take a look at the library mentioned,afero, and you'll see how nice it handles working with the file system in tests.
You can have everything in memory, and a whole new fs in each test
- jen20 1y agoThe problem is it only tests trivial properties of the API. That might be enough for some things, but it’s not a panacea.