High Coverage, Still Missing Tests? Using the CRAP Metric to Find the Functions That Need Them Most
With mostly agent-written code, high line coverage couldn't show whether the gaps sat in the most complex functions; a CRAP threshold of 8 cleared 200-plus offending functions and turned up 72 issues to fix.