MCPcopy Index your code
hub / github.com/nodejs/node / getResult

Method getResult

test/common/wpt.js:109–117  ·  view source on GitHub ↗

* Get or create a ReportResult for a test spec. * @param {WPTTestSpec} spec * @returns {ReportResult}

(spec)

Source from the content-addressed store, hash-verified

107 * @returns {ReportResult}
108 */
109 getResult(spec) {
110 const name = `/${spec.getRelativePath()}${spec.variant}`;
111 if (this.results.has(name)) {
112 return this.results.get(name);
113 }
114 const result = new ReportResult(name);
115 this.results.set(name, result);
116 return result;
117 }
118
119 /**
120 * @returns {void}

Callers 1

runJsTestsMethod · 0.45

Calls 4

getRelativePathMethod · 0.80
hasMethod · 0.65
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected