fabricator

Goldziher/fabricator

Type-safe factories for generating mock and fake data in Go, inspired by factory_boy and interface-forge.

  • factories
  • factory
  • faker
  • go
  • golang
  • mock
  • fixtures
  • generics

More in Mock

mockeryby vektra

Tool to generate Go interfaces.

github.com/vektra/mockery/v3Go 1.26+ 20 dependenciesv3.9.0updated today

7.2k

go-sqlmockby DATA-DOG

Mock SQL driver for testing database interactions.

github.com/DATA-DOG/go-sqlmockGo 1.15+ 1 dependencyv1.5.2updated 3mo ago

6.6k

gomockby uber-go

Mocking framework for the Go programming language.

go.uber.org/mockGo 1.25+ 3 dependenciesv0.6.0updated 2mo ago

3.4k

hoverflyby SpectoLabs

HTTP(S) proxy for recording and simulating REST/SOAP APIs with extensible middleware and easy-to-use CLI.

github.com/SpectoLabs/hoverflyGo 1.27+ 41 dependenciesv1.12.17updated 1d ago

2.5k

moqby matryer

Utility that generates a struct from any interface. The struct can be used in test code as a mock of the interface.

github.com/matryer/moqGo 1.26+ 2 dependenciesv0.8.1updated 19d ago

2.2k

httpmockby jarcoal

Easy mocking of HTTP responses from external resources.

github.com/jarcoal/httpmockGo 1.18+ 1 dependencyv1.4.2updated 27d ago

2.1k

counterfeiterby maxbrunsfeld

Tool for generating self-contained mock objects.

github.com/maxbrunsfeld/counterfeiter/v6Go 1.26+ 5 dependenciesv6.14.0updated 19d ago

1.1k

minimockby gojuno

Mock generator for Go interfaces.

github.com/gojuno/minimock/v3Go 1.23+ 9 dependenciesv3.4.7updated 13d ago

752
All 23 in Mock
Esc

Type to search every entry. ↑↓ to move, Enter to open.