A bug is an error or defect that produces incorrect behavior or allows defect-prone code into released software. Code reviews can expose errors the original developer missed, but their bug-finding role remains debated. section 1.3.1 section 3.1.1
Treat bug detection as one part of a broader quality strategy:
- Use unit tests and developer checks to catch expected failures before review. section 3.1.1
- Use review to catch subtle functionality errors that tests or the original author missed. section 3.1.1
- Pair reviews with CI/CD and readable, maintainable code to reduce defects reaching production. section 1.3.1
The wrong cache
A pull request retrieves data from a cache and includes passing unit tests, but the implementation reads from the wrong cache. Review reveals the subtle functionality defect. section 3.1.1


