Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Nice to see that the interface for the DB was separated out:
https://github.com/rehacktive/caffeine/blob/master/service/s...
It's not "MVP" fashion but even for only one implementation making these interfaces is critical IMO.
That said, if it's not too much maybe consider adding a SQLite backend! :)
Parse is still around and supported: https://github.com/parse-community/parse-server
And also a (very efficient) Java cache library https://github.com/ben-manes/caffeine
Another similar project that I use for mocking API server https://github.com/typicode/json-server
I have used WireMock in the past: https://github.com/wiremock/wiremock
It's more complex than Caffeine, but it has a lot of options.
It can also run as a proxy and generate the mocks from actual http requests passing through the proxy
Since we are collecting :) there is also a streaming service https://www.caffeine.tv/
Very cool. You could simplify the tests by using testify [0] assertions and possibly a test suite. Then it'd be easier to add additional test cases.
[0] https://github.com/stretchr/testify
Related posts
- I Write Tests in Go
- Direction of mockery: absorb different styles of mocks into this project · vektra mockery · Discussion #671
- vektra/mockery has fully released the "packages" feature! This blog explains what it is and how it works.
- Why elixir over Golang
- Go: Write Mock Test cases using Mockery and