Mock
23 libraries in Testing / Mock
Tool to generate Go interfaces
Mock SQL driver for testing database interactions
Mocking framework for the Go programming language
HTTP(S) proxy for recording and simulating REST/SOAP APIs with extensible middleware and easy-to-use CLI
Utility that generates a struct from any interface. The struct can be used in test code as a mock of the interface
Easy mocking of HTTP responses from external resources
Tool for generating self-contained mock objects
Mock generator for Go interfaces
Single transaction based database driver mainly for testing purposes
A mock library implementing [pgx - PostgreSQL Driver and Toolkit](https://github.com/jackc/pgx/)
A general pureposed function mocking library
HTTP mock for Golang: record and replay HTTP interactions for offline testing
Tool for using localstack in AWS testing
A test-friendly replacement for the native `time` package
Type-safe factories for generating mock and fake data in Go, inspired by factory_boy and interface-forge
Mock object for Go http.ResponseWriter
A simple way to generate mocks for multiple purposes
Mock filesystem for Go testing with error injection and latency simulation, built on `testing/fstest.MapFS`
CLI tool to generate typed and framework-agnostic interface mocks, with support for generics
A live mocker library for functions and methods in Golang for unit testing with fluent syntax, no code-gen needed
Combine multiple APIs with meaningful responses, configurable latency and error codes based on OpenAPI 3.0 specifications and files
Versatile HTTP mocking made easy
Expressive, zero-boilerplate WebSocket mock server for testing with fault injection and assertions