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

Function compareText

graph-ui/src/traces/bug-paths.ts:208–213  ·  view source on GitHub ↗

Ordinal comparison, never `localeCompare`: two machines must agree.

(a: string, b: string)

Source from the content-addressed store, hash-verified

206
207/** Ordinal comparison, never `localeCompare`: two machines must agree. */
208function compareText(a: string, b: string): number {
209 if (a === b) {
210 return 0;
211 }
212 return a < b ? -1 : 1;
213}
214
215/** The symbols the index records as calling one qualified name, in a fixed order. */
216async function callersOf(

Callers 4

callersOfFunction · 0.70
staticChainsFunction · 0.70
byPairFunction · 0.70
bugPathsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected