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

Function completenessOf

graph-ui/src/impact/risk-rules.ts:228–240  ·  view source on GitHub ↗
(inputs: readonly SymbolRiskInput[])

Source from the content-addressed store, hash-verified

226}
227
228export function completenessOf(inputs: readonly SymbolRiskInput[]): RiskInputCompleteness {
229 let measuredCount = 0;
230 for (const input of inputs) {
231 if (hasComplexityReadings(input)) {
232 measuredCount += 1;
233 }
234 }
235 return {
236 measured: measuredCount,
237 unmeasured: inputs.length - measuredCount,
238 total: inputs.length,
239 };
240}
241
242/** Order used when a list of levels has to be sorted worst first. */
243export const RISK_ORDER: Readonly<Record<RiskLevel, number>> = { high: 0, medium: 1, low: 2 };

Callers 2

mapChangeImpactFunction · 0.90
risk-rules.test.tsFile · 0.90

Calls 1

hasComplexityReadingsFunction · 0.85

Tested by

no test coverage detected