moq | redismock | |
---|---|---|
16 | 1 | |
1,771 | 256 | |
- | 2.3% | |
3.6 | 3.1 | |
7 days ago | 14 days ago | |
Go | Go | |
MIT License | BSD 2-clause "Simplified" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
moq
- vektra/mockery has fully released the "packages" feature! This blog explains what it is and how it works.
- Why elixir over Golang
-
Is gomock still maintained and recommended?
``` https://github.com/matryer/moq
-
How do you write/generate mocks for testing?
Currently trying out https://github.com/matryer/moq for the first time, and quite positive so far. Haven't pushed it enough yet to give a real opinion.
-
gomock giving me a hard time
I like moq much better than gomock. Much simpler and easier to work with.
-
how to mock DBs
Just replaced mockery generated mocks with https://github.com/matryer/moq Alot cleaner imo at least for me
- Testify Mocking conundrums
-
Can someone please comment on this mock example from Jon Calhoun's post on DDD?
btw, you can avoid making such mocks manually by using https://github.com/matryer/moq, which will generate such mocking code for you
-
How do you control behaviour in mocked interface ?
I like the way of matryer/moq a lot. Basically, it generates a func for each of the methods of an interface, therefore the behaviour is clear to everyone without too much abstraction.
-
What mocking framework do you prefer?
This one is easy to use, simple, powerful and idiomatic https://github.com/matryer/moq
redismock
-
how to mock DBs
I used also other lib to mock different components like redis cache.
What are some alternatives?
gomock - GoMock is a mocking framework for the Go programming language.
postgres - Docker Official Image packaging for Postgres
mockery - A mock code autogenerator for Go
testcontainers-node - Testcontainers is a NodeJS library that supports tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
Testify - A toolkit with common assertions and mocks that plays nicely with the standard library
NSubstitute - A friendly substitute for .NET mocking libraries.
dockertest - Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.
counterfeiter - A tool for generating self-contained, type-safe test doubles in go
go - The Go programming language
GORM - The fantastic ORM library for Golang, aims to be developer friendly