seam

A place in the code where you can swap in different behaviour without editing the code itself, such as a parameter.

In more detail

The simplest seam is passing a collaborator in as an argument instead of building it inside. Michael Feathers named the idea in Working Effectively with Legacy Code. A clock or generator argument with a default is often the smallest useful seam.

Related terms

Taught in

References