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

Function compareText

graph-ui/src/compiler/fact-recipes.ts:331–336  ·  view source on GitHub ↗

Ordinal comparison. The determinism rule this project states everywhere.

(a: string, b: string)

Source from the content-addressed store, hash-verified

329
330/** Ordinal comparison. The determinism rule this project states everywhere. */
331function compareText(a: string, b: string): number {
332 if (a === b) {
333 return 0;
334 }
335 return a < b ? -1 : 1;
336}
337
338function neighbourKey(entry: NeighbourFact): string {
339 return `${entry.direction}:${entry.qualifiedName ?? entry.name}`;

Callers 2

boundNeighboursFunction · 0.70
overviewFactsOfFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected