boltdb/bolt — pull request #86 by benbjohnson (2014-03-24 13:49:02+00:00)
Title: Re-add tests for write failures

Via @tv42:

> Commit d2173f5f0ecbf4ed93c768e975435b04df3186ec removed the complete os & syscall mocking layer as overly complex. This commit adds back the simplest possible thing: hooks to control the database file writes.
>
> Missing tests: TestDBOpenMetaFileError, TestDBMmapStatError. These are harder to test without more extensive mocking.

Conflicts:
db_test.go

Fixes: #77