MCPcopy Create free account
hub / github.com/vitest-dev/vitest / pushCommonLine

Function pushCommonLine

packages/utils/src/diff/joinAlignedDiffs.ts:188–193  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

186 let bEnd = 0
187
188 const pushCommonLine = (line: string): void => {
189 const j = lines.length
190 lines.push(printCommonLine(line, j === 0 || j === jLast, options))
191 aEnd += 1
192 bEnd += 1
193 }
194
195 const pushDeleteLine = (line: string): void => {
196 const j = lines.length

Callers 1

joinAlignedDiffsNoExpandFunction · 0.85

Calls 1

printCommonLineFunction · 0.85

Tested by

no test coverage detected