vektra/mockery
View on GitHub ↗ ★ 7,181 Go
A mock code autogenerator for Go
5 mentions on Hacker News by 5 people: 1 story, 4 comments · first 2017-12-11 · latest 2024-04-11
20082026
-
…too lazy to write mocks by hand in go. You can generate a mock for a given interface with mockery https://github.com/vektra/mockery
comment by ashconnor · 2024-04-11 · in How I write unit tests in Go -
…*Foo. By the way, mockery [1] generates super easy to use mocks for exactly this workflow. [1] https://github.com/vektra/mockery
comment by latchkey · 2022-08-17 · in Learning a new language, or how I gained familiarity with Go -
▲ 1
Show HN: Simple Go mocks without interface{}sstory by micvbang · 2022-05-27 · 0 comments
-
…you happy. There's at least 3 of these flying around in various stages of abandonment. Here's one: https://github.com/vektra/mockery
comment by PopsiclePete · 2017-12-11 · in Ask HN: How to approach testing in Golang? -
…and Mockery (based on Testify) [1] to generate mocks. [0] https://github.com/stretchr/testify [1] https://github.com/vektra/mockery
comment by closeparen · 2017-12-11 · in Ask HN: How to approach testing in Golang?