Skip to content

Instantly share code, notes, and snippets.

View huangyisan's full-sized avatar
🎯
Focusing

Umbrella huangyisan

🎯
Focusing
View GitHub Profile
@huangyisan
huangyisan / gomock.md
Created December 7, 2022 04:56 — forked from thiagozs/gomock.md
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.