This repo contains the source code for my blog post on mocking the database in Go.
Blog post is WIP
Features
- Posts can be created.
- Posts can be deleted.
- A single post can be viewed.
The app uses an sqlite database but for the tests, the database interaction is mocked out... Run cat db.sql | sqlite3 demo.sqlite
to get the sample database.
MIT