Hacker GitHub

← All repos

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

Mentions per year 5 mentions · busiest year 2017 (2)
20082026
  1. …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
  2. …*Foo. By the way, mockery [1] generates super easy to use mocks for exactly this workflow. [1] https://github.com/vektra/mockery
  3. …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?
  4. …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?