MCPcopy Create free account
hub / github.com/nodejs/node / getKey

Function getKey

test/fixtures/wpt/url/url-constructor.any.js:16–24  ·  view source on GitHub ↗
(expected)

Source from the content-addressed store, hash-verified

14 const base = expected.base !== null ? expected.base : undefined;
15
16 function getKey(expected) {
17 if (expected.protocol) {
18 return expected.protocol.replace(":", "");
19 }
20 if (expected.failure) {
21 return expected.input.split(":")[0];
22 }
23 return "other";
24 }
25
26 subsetTestByKey(getKey(expected), test, function() {
27 if (expected.failure) {

Callers 2

runURLTestsFunction · 0.70
addToGroupFunction · 0.50

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected