MCPcopy Create free account
hub / github.com/alibaba/open-code-review / fakeExec

Function fakeExec

scripts/github-actions/check-translation-sync.test.js:246–249  ·  view source on GitHub ↗
(cmd, args)

Source from the content-addressed store, hash-verified

244function 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, [

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected