MCPcopy
hub / github.com/loggerhead/json4u / newDiff

Function newDiff

src/lib/compare/diff.ts:41–43  ·  view source on GitHub ↗
(offset: number, length: number, type: DiffType)

Source from the content-addressed store, hash-verified

39}
40
41export function newDiff(offset: number, length: number, type: DiffType): Diff {
42 return { offset, length, type };
43}
44
45/**
46 * Classifies an array of differences into left and right differences.

Callers 7

histogramDiffFunction · 0.90
solveMethod · 0.90
DiffFunction · 0.90
compare.tsFile · 0.90
arrayDiffFunction · 0.90
myersDiffFunction · 0.90
compare.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected