MCPcopy Create free account
hub / github.com/kpdecker/jsdiff / compareLine

Function compareLine

test/patch/apply.js:1351–1360  ·  view source on GitHub ↗
(lineNumber, line, operation, patchContent)

Source from the content-addressed store, hash-verified

1349 + ' line5\n',
1350 {
1351 compareLine(lineNumber, line, operation, patchContent) {
1352 expect(lineNumber).to.be.a('number');
1353 if (lineNumber === 2) {
1354 expect(line).to.equal('line2');
1355 expect(operation).to.equal(' ');
1356 expect(patchContent).to.equal('line3');
1357 }
1358
1359 return true;
1360 }
1361 }))
1362 .to.equal(
1363 'line2\n'

Callers 1

applyHunkFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected