InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards. Learn more →
Counterfeiter Alternatives
Similar projects and alternatives to counterfeiter
-
-
InfluxDB
Purpose built for real-time analytics at any scale. InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
-
-
-
-
-
dockertest
Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
-
-
-
-
-
-
go-testdeep
Extremely flexible golang deep comparison, extends the go testing package, tests HTTP APIs and provides tests suite
-
-
vecty
Vecty lets you build responsive and dynamic web frontends in Go using WebAssembly, competing with modern web frameworks like React & VueJS.
-
-
-
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
counterfeiter discussion
counterfeiter reviews and mentions
-
Mocking database calls without a library?
then just replace whole function, don't generate manually the mock '__') or it would get out of hand fast, you can just use codegen that static typed like https://github.com/maxbrunsfeld/counterfeiter
-
Is this a good way to make sure that a mocked function is called inside the Unit Test?
Yes, that's a good way to do that; there are a lot of packages that allow you to mock and spy the calls if you're looking for one that generates the code for you I can recommend counterfeiter, I also have a short blog that covers it.
-
Libraries you use most of your projects?
I prefer https://github.com/maxbrunsfeld/counterfeiter
-
How do you write/generate mocks for testing?
counterfeiter is another tool, it creates mocks, stubs and spies; here is a short blog I wrote covering it.
- Mocking Interfaces in Go with GoMock
- What's the best approach for mocking a function /method?
-
Best/Easiest Rest Framework
for dependency injection I suggest you use https://github.com/maxbrunsfeld/counterfeiter, but if you using really fast database (that can spawn fast using docker and has fast trx/sec) you can use it directly without dependency injection with https://github.com/ory/dockertest
-
Migrating from NodeJS/Typescript into Golang. Any advise for big web application?
Agree with u/mmknightx there is a tool that assist in creating fake or mock classes for your interfaces https://github.com/maxbrunsfeld/counterfeiter
-
How do you control behaviour in mocked interface ?
Another alternative to use would be counterfeiter, it generates a type from your interface that could be used as a mock, stub or spy. I wrote a short post covering that tool if you're interested.
- Slack notification Github action
-
A note from our sponsor - InfluxDB
www.influxdata.com | 8 Sep 2024
Stats
maxbrunsfeld/counterfeiter is an open source project licensed under MIT License which is an OSI approved license.
The primary programming language of counterfeiter is Go.