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

Function run

scripts/github-actions/post-review-comments.test.js:362–378  ·  view source on GitHub ↗
({ result, stderr = "", opts = {}, githubOpts = {} })

Source from the content-addressed store, hash-verified

360}
361
362async function run({ result, stderr = "", opts = {}, githubOpts = {} }) {
363 const resultText = typeof result === "string" ? result : JSON.stringify(result);
364 const fs = mockFs(resultText, stderr);
365 const github = makeGithub(githubOpts);
366 const core = mockCore();
367 const options = Object.assign({ stickySummary: true, incremental: false }, opts);
368 await runPostReviewComments({
369 github,
370 context,
371 core,
372 fs,
373 resultPath: "/tmp/ocr-result.json",
374 stderrPath: "/tmp/ocr-stderr.log",
375 ...options,
376 });
377 return { github, core, outputs: core.outputs };
378}
379
380// ---- Test cases (mirror PLAN §7) ----
381

Calls 4

mockFsFunction · 0.85
makeGithubFunction · 0.85
mockCoreFunction · 0.85
runPostReviewCommentsFunction · 0.85

Tested by

no test coverage detected