Reading List
The most recent articles from a list of feeds I subscribe to.
Testing SnailLife Go repositories
Every SnailLife model struct has a repository struct to go with it. Since all repos are implementing the same Repository interface I wanted to reuse most of the code for testing them, but also allow for custom repo-specific tests. For example,OwnerRepo
does some stuff that StableRepo
does not - like optionally retrieving stables belonging to an owner.
Testing SnailLife Go repositories
Every SnailLife model struct has a repository struct to go with it. Since all repos are implementing the same Repository interface I wanted to reuse most of the code for testing them, but also allow for custom repo-specific tests. For example,OwnerRepo
does some stuff that StableRepo
does not - like optionally retrieving stables belonging to an owner.
Excluding mocks from coverage reports
I noticed that my coverage reports were including mock packages.

To get rid of this instead of running go test
like this:
Excluding mocks from coverage reports
I noticed that my coverage reports were including mock packages.

To get rid of this instead of running go test
like this:
Testing SnailLife Go on Go 1.10
This is quick braindump of getting SnailLife Go building and testing on Go 1.10.
A few days ago I decided to start building and testing SnailLife Go on Go 1.10 RC 1 (now RC 2). It took a bit of wrangling, but after updating my local environment and finding the best image to use for GitLab CI, I now have it building on Go 1.9 and 1.10 rc 2.