implementation detail

How code happens to be arranged inside, as opposed to the behaviour a caller can observe.

In more detail

Examples are private helper functions, the order in which collaborators are called, and internal data structures. A test that asserts on these ties itself to one arrangement of the code and breaks when it is tidied. Prefer assertions about outputs, visible state and messages that really leave the system.

Related terms

Taught in

References