lesiw/moxie

Go mock library that proxies method calls to embedded types.

38
/ 100
Emerging

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.

Go-programming unit-testing software-development developer-tools
No Package No Dependents
Maintenance 10 / 25
Adoption 5 / 25
Maturity 16 / 25
Community 7 / 25

How are scores calculated?

Stars

10

Forks

1

Language

Go

License

MIT

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.