Would've liked to have written more tests, but struggled to think of any good ones. Can't really test the error handling without hard coding an arbitrary filepath (which seems pointless) or creating a new file on disk every time the tests are run, which I don't think is a good idea. Let me know if you can think of any though, and obviously try to break the function in every conceivable way.
The last big one.
Would've liked to have written more tests, but struggled to think of any good ones. Can't really test the error handling without hard coding an arbitrary filepath (which seems pointless) or creating a new file on disk every time the tests are run, which I don't think is a good idea. Let me know if you can think of any though, and obviously try to break the function in every conceivable way.