mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
This patch adds tests to verify how safeio behaves when *os.File operations return various errors. To do this, we allow the possibility of wrapping os.CreateTemp, so we can simulate the errors during testing. This is not pretty, but the code is small enough that the readability overhead is minimal, and we get a lot of tests from it.