MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / impactTestsSentence

Function impactTestsSentence

graph-ui/src/impact/impact-strings.ts:119–129  ·  view source on GitHub ↗
(covering: number, missing: number)

Source from the content-addressed store, hash-verified

117}
118
119export function impactTestsSentence(covering: number, missing: number): string {
120 if (covering === 0 && missing === 0) {
121 return 'No affected symbol could be checked for test callers.';
122 }
123 if (missing === 0) {
124 return 'Every affected symbol that was checked has a test caller '
125 + `(${countOf(covering, 'test caller', 'test callers')} in total), so a change here would be noticed.`;
126 }
127 return `No test caller was found for ${countOf(missing, 'affected symbol', 'affected symbols')}, `
128 + `so a change to ${missing === 1 ? 'it' : 'them'} would go unnoticed by any automatic check.`;
129}
130
131/**
132 * Said whenever a level was decided partly on absence.

Callers 1

buildNarrativeFunction · 0.90

Calls 1

countOfFunction · 0.70

Tested by

no test coverage detected