CogitaveLearn

Knowledge check

Check your knowledge

Choose an answer to see why it is right or wrong.

JavaScript is off, so every explanation is shown at once.

  1. 01Your PR changes a Rust function whose new behavior is fully observable in a single pure-function unit test. A reviewer asks you to also add an end-to-end test for it. What does the Testing & Quality Standard say?

  2. 02A change touches a large legacy file with low overall coverage. Which coverage check is the blocking gate on the PR?

  3. 03CI reports that one of your tests passed on one run and failed on a rerun of the same commit. What does the standard require?

  4. 04In review, a teammate insists you extract an interface (a port) for a component that has exactly one implementation and no test-double need, citing Dependency Inversion. How should this be resolved under the Code Craftsmanship Standard?