Skip to main content

check_diff

Function check_diff 

Source
pub fn check_diff(diff: &str) -> RatchetVerdict
Expand description

Inspect a unified diff and block it if it removes test code without adding equivalent test code back.

Heuristic, language-agnostic: count removed vs. added lines that look like test declarations (and whole removed test files). A net loss of test markers fails the ratchet.