3 — Mocking
Purpose
[stub: mocking]
Metadata
| Author | Amit Singh |
| Scope | low-level-design |
Local graph
Related notes
1 — Unit Testing
Covers writing isolated, fast, deterministic tests that verify a single unit of behavior without touching external dependencies.
2 — Testable Design
Explains how explicit dependency boundaries and small units of behavior make code inherently easier to exercise in isolation.
4 — Dependency Injection for Testing
Explains how injecting dependencies rather than constructing them internally lets tests substitute fakes without touching production code.
5 — Contract Testing
Covers verifying that a producer and consumer agree on an API or message contract without standing up the full integration.