Skip to content

Glossary: Software Design Patterns in Go

Fake

Also written: fakes

A simple working stand-in for a real part, such as the in-memory `MemoryRepo` or a notifier that keeps its messages in a slice. Tests use fakes to avoid touching the disk or sending email.

Where the book teaches it

Related terms

StubMock