-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Flesh out the
NullDbT
implementation.
The `NullDbT` type now properly implements the `MonadDb` spec and behaves as one would expect from a `MonadDb` implementation, save for the fact that it's not backed by a persistent store. As before, do not use this type in production! In this commit, we also test the `NullDbT` implementation fairly thoroughly. This may seem a bit odd for a database implementation that's only intended for testing use itself, but we want to be sure that our core implementation behaves as expected before building more tests on that foundation. There are some serious DRY violations in the test code in this commit. Much of it is copied from our `primer-rel8` tests. We really need to factor out a lot of reusable testing code into a separate lib. (See #273.) However, I'll leave that work for a later PR, as it will require a pretty substantial amount of refactoring.
- Loading branch information
Showing
4 changed files
with
368 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.