
The Best Go Libraries For Testing - Mock (19)
Discover the best Go libraries for Testing in Mock! Find the perfect tools to streamline your development and boost productivity. From go-sqlmock to govcr, we've got you covered. Let the coding begin!
go-sqlmock
Mock SQL driver for testing database interactions
govcr
HTTP mock for Golang: record and replay HTTP interactions for offline testing
hoverfly
HTTP(S) proxy for recording and simulating REST/SOAP APIs with extensible middleware and easy-to-use CLI
httpmock
Easy mocking of HTTP responses from external resources
minimock
Mock generator for Go interfaces
mockery
Tool to generate Go interfaces
mockhttp
Mock object for Go http.ResponseWriter
connexions
Combine multiple APIs with meaningful responses, configurable latency and error codes based on OpenAPI 3.0 specifications and files
counterfeiter
Tool for generating self-contained mock objects
go-txdb
Single transaction based database driver mainly for testing purposes
gock
Versatile HTTP mocking made easy
gomock
Mocking framework for the Go programming language
mockfs
Mock filesystem for Go testing with error injection and latency simulation, built on `testing/fstest.MapFS`
moq
Utility that generates a struct from any interface. The struct can be used in test code as a mock of the interface
pgxmock
A mock library implementing [pgx - PostgreSQL Driver and Toolkit](https://github.com/jackc/pgx/)
timex
A test-friendly replacement for the native `time` package
xgo
A general pureposed function mocking library
mooncake
A simple way to generate mocks for multiple purposes
go-localstack
Tool for using localstack in AWS testing