MCPcopy
hub / github.com/skygragon/leetcode-cli / printResult

Function printResult

lib/commands/submit.js:26–35  ·  view source on GitHub ↗
(actual, k)

Source from the content-addressed store, hash-verified

24};
25
26function printResult(actual, k) {
27 if (!actual.hasOwnProperty(k)) return;
28
29 const v = actual[k] || '';
30 const lines = Array.isArray(v) ? v : [v];
31 for (let line of lines) {
32 if (k !== 'state') line = k + ': ' + line;
33 log.info(' ' + h.prettyText(' ' + line, actual.ok));
34 }
35}
36
37function printLine() {
38 const args = Array.from(arguments);

Callers 1

submit.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected