Skip to content

Instantly share code, notes, and snippets.

View TomCN0803's full-sized avatar
🎯
Focusing

Haokun Tang TomCN0803

🎯
Focusing
View GitHub Profile
@thiagozs
thiagozs / gomock.md
Last active April 19, 2024 03:45
Tutorial gomock

08/16/17 by  Sergey Grebenshchikov

No Comments

This is a quick tutorial on how to test code using the GoMock mocking library and the standard library testing package testing.

GoMock is a mock framework for Go. It enjoys a somewhat official status as part of the github.com/golang organization, integrates well with the built-in testing package, and provides a flexible expectation API.