Go mockgen

Open-source Go projects categorized as mockgen Edit details
Related topics: #Go #Mock #Golang #Testing #Mocks

Top 3 Go mockgen Projects

  • mockery

    A mock code autogenerator for Golang (by vektra)

    Project mention: Show HN: Simple Go mocks without interface{}s | news.ycombinator.com | 2022-05-27

    Since mockery uses a lot of interface{} magic, adding arguments or return values to interfaces and regenerating the mocks does not get the compiler to complain about existing, now invalid, usages of the mocks. This means that I have to track them down manually. Or, if I'm brave enough, try my hand at a few crazy regexes that never get the job 100% done.

    go-mocky does not use interface{}s, and thus can't hide changes to function signatures from the compiler; whenever a mock has been updated and the function signature has changed, the compiler will complain for all existing tests. This means that I can now catch errors at compile/lint time instead of runtime.

    Another added benefit is that the go-mocky mocks are dead simple and very easy to write and maintain by hand, should the need ever arise.

    [1]: https://github.com/vektra/mockery

  • gomockhandler

    Mr. gomockhandler is the clever and more agile manager of golang/mock 👔

    Project mention: more clever and faster management for gomock (sanposhiho/gomockhandler) | reddit.com/r/golang | 2021-08-19
  • JetBrains

    Developer Ecosystem Survey 2022. Take part in the Developer Ecosystem Survey 2022 by JetBrains and get a chance to win a Macbook, a Nvidia graphics card, or other prizes. We’ll create an infographic full of stats, and you’ll get personalized results so you can compare yourself with other developers.

  • go-mocky

    Type safe mock generator in Go

    Project mention: Show HN: Simple Go mocks without interface{}s | news.ycombinator.com | 2022-05-27
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-05-27.

Go mockgen related posts


What are some of the best open-source mockgen projects in Go? This list will help you:

Project Stars
1 mockery 3,607
2 gomockhandler 66
3 go-mocky 5
Find remote jobs at our new job board 99remotejobs.com. There are 4 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Less time debugging, more time building
Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.