logoalt Hacker News

joshribakofftoday at 5:21 AM0 repliesview on HN

If you’re doing TDD, you could just view this as moving the “open” call to your unit test. As others point out, that encourages pure functions that can pipe in input from other sources than just file paths.