lesiw/moxie
Go mock library that proxies method calls to embedded types.
Moxie helps Go developers isolate and control the behavior of dependent components during testing. It takes a Go type with an embedded field and generates 'mock' methods. These methods allow you to specify what values a function should return or what code it should execute when called, helping developers test specific units of code without external dependencies.
Use this if you are a Go developer building a test suite and need to replace real implementations of embedded types with controlled, predictable behaviors to simplify unit testing.
Not ideal if you need a mocking solution for languages other than Go, or if your testing strategy doesn't involve isolating and stubbing embedded type behaviors.
Stars
10
Forks
1
Language
Go
License
MIT
Category
Last pushed
Feb 18, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/lesiw/moxie"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
googleapis/gapic-generator-python
Generate Python API client libraries from Protocol Buffers.
zeromicro/go-zero
A cloud-native Go microservices framework with cli tool for productivity.
omissis/go-jsonschema
A tool to generate Go data types from JSON Schema definitions.
openconfig/ygot
A YANG-centric Go toolkit - Go/Protobuf Code Generation; Validation; Marshaling/Unmarshaling
mailru/easyjson
Fast JSON serializer for golang.