Skip to content

Glossary: Software Design Patterns in C++

Stub

Also written: stubs

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

Where the book teaches it

Related terms

FakeMockInjected clock