(cmd, args)
| 244 | function testGetChangedFilesFromGitDiff() { |
| 245 | const calls = []; |
| 246 | const fakeExec = (cmd, args) => { |
| 247 | calls.push({ cmd, args }); |
| 248 | return "pages/src/content/docs/en/faq.md\ninternal/x.go\n"; |
| 249 | }; |
| 250 | const env = { OCR_BASE_SHA: "base", OCR_HEAD_SHA: "head" }; |
| 251 | const out = getChangedFiles(env, fakeExec); |
| 252 | assert.deepStrictEqual(out, [ |
nothing calls this directly
no outgoing calls
no test coverage detected