this post was submitted on 17 Jun 2024
6 points (87.5% liked)

Hacker News

2171 readers
1 users here now

A mirror of Hacker News' best submissions.

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] echo@lemmings.world 3 points 1 year ago (1 children)

To address your second claim - doing IO in tests does not mean testing IO.

I just got the sense that the author was saying that the your tests have to cover every possible failure mode of IO and that's just silly. IO should have its own tests. This goes back to your "expectation of a contract".

[–] Slotos@feddit.nl 1 points 1 year ago

Ah, I didn’t get that impression myself, but looking at the article again I can see it.