Skip to content

Glossary: Software Design Patterns in Go

Stub

Also written: stubs

A test stand-in that returns fixed answers, such as a clock that always says 4:00 p.m.

Where the book teaches it

Related terms

FakeMockInjected clock