Skip to content

Glossary: Software Design Patterns in Go

Mock

Also written: mocks

A test stand-in that also records how it was called so the test can check it. It differs from a plain fake, which only stands in for a real part.

Where the book teaches it

Related terms

FakeStub