MCPcopy
hub / github.com/MisterBooo/LeetCodeAnimation / printReport

Function printReport

tools/scripts/sync-algomooc-index.js:219–225  ·  view source on GitHub ↗
(report, manifest)

Source from the content-addressed store, hash-verified

217}
218
219function printReport(report, manifest) {
220 console.log(`items: ${manifest.length}`);
221 console.log(`added: ${report.added.length}, changed: ${report.changed.length}, removed: ${report.removed.length}`);
222 if (report.added.length) console.log(`added items:\n${report.added.map((item) => ` - ${itemLabel(item)}`).join("\n")}`);
223 if (report.changed.length) console.log(`changed items:\n${report.changed.map((item) => ` - ${itemLabel(item)}`).join("\n")}`);
224 if (report.removed.length) console.log(`removed items:\n${report.removed.map((item) => ` - ${itemLabel(item)}`).join("\n")}`);
225}
226
227function syncLogHeader() {
228 return `# 同步记录

Callers 1

Calls 1

itemLabelFunction · 0.70

Tested by

no test coverage detected