dummy
A placeholder value passed only to satisfy a function's parameter list and never actually used.
In more detail
It is the fifth and simplest kind of test double. If a dummy ever gets called, the test's assumptions are wrong.
Related terms
- test double — Any object that replaces a real dependency in a test: a stub returns canned data, a fake is a small working implementation, and a mock checks interactions.
- stub — A stand-in for a dependency in a test that simply returns prepared answers, without checking how it was called.
Taught in
- Fakes, Stubs, Mocks And Spies — Automated Testing, TDD & Quality Engineering