oscope-dev / scope

Scoping user machines
https://oscope-dev.github.io/scope/
BSD 3-Clause "New" or "Revised" License
6 stars 3 forks source link

Create test for glob walker #93

Closed ethankhall closed 7 months ago

ethankhall commented 7 months ago

This adds two tests, one without an abs path (like would be without work_dir), and one with an abs path.

There was a bug fixed yesterday around this, but was hard to test. This adds a new abstraction FileSystem that's intent is to abstract away filesystem access, to allow us to write unit tests without needing to setup the filesystem in a specific way.

This trait will probably grow as we add more unit tests.