MCPcopy Create free account
hub / github.com/nodejs/node / diffFiles

Function diffFiles

deps/npm/test/bin/windows-shims.js:30–39  ·  view source on GitHub ↗
(npm, npx)

Source from the content-addressed store, hash-verified

28 // these scripts should be kept in sync so this tests the contents of each
29 // and does a diff to ensure the only differences between them are necessary
30 const diffFiles = (npm, npx) => Diff.diffChars(npm, npx)
31 .filter(v => v.added || v.removed)
32 .reduce((acc, v) => {
33 if (v.value.length === 1) {
34 acc.letters.add(v.value.toUpperCase())
35 } else {
36 acc.diff.push(v.value)
37 }
38 return acc
39 }, { diff: [], letters: new Set() })
40
41 t.plan(SHIM_EXTS.length)
42

Callers 1

windows-shims.jsFile · 0.85

Calls 4

reduceMethod · 0.80
filterMethod · 0.65
addMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected