MCPcopy
hub / github.com/continuedev/continue / displayDiff

Function displayDiff

core/diff/streamDiff.vitest.ts:52–56  ·  view source on GitHub ↗
(diff: DiffLine[])

Source from the content-addressed store, hash-verified

50}
51
52function displayDiff(diff: DiffLine[]) {
53 return diff
54 .map(({ type, line }) => `${UNIFIED_DIFF_SYMBOLS[type]} ${line}`)
55 .join("\n");
56}
57
58async function expectDiff(file: string) {
59 const testFilePath = path.join(__dirname, "test-examples", file + ".diff");

Callers 1

expectDiffFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected