Go package comparison

mockery vs moq

Compare two Go packages using the same scoring model: maintenance, adoption, security, maturity, developer experience, and data confidence.

Quick Decision

mockery currently leads this comparison by the weighted health model.

95

mockery

A mock code autogenerator for Go

95
Maintenance 95
Adoption 100
Security 92
Maturity 100
Developer DX 81
Confidence 100

moq

Interface mocking tool for go generate

89
Maintenance 88
Adoption 93
Security 92
Maturity 87
Developer DX 81
Confidence 100

Metric Table

side by side
Metric mockery moq Lead
Health 95 89 mockery
Maintenance 95 88 mockery
Adoption 100 93 mockery
Security 92 92 Tie
Maturity 100 87 mockery
Imported by84mockery
Stars7.1K2.2Kmockery
Last activity28 days ago2 months agoReview dates
Known vuln records00Tie

Choose mockery if

You prefer its current score profile and the package fits your framework or API style.

Its maintenance, adoption, and security signals match your project risk tolerance.

Choose moq if

You prefer its current score profile and the package fits your framework or API style.

Its maintenance, adoption, and security signals match your project risk tolerance.