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

Function getKey

test/fixtures/wpt/url/resources/a-element.js:34–42  ·  view source on GitHub ↗
(expected)

Source from the content-addressed store, hash-verified

32 const base = expected.base === null ? "about:blank" : expected.base;
33
34 function getKey(expected) {
35 if (expected.protocol) {
36 return expected.protocol.replace(":", "");
37 }
38 if (expected.failure) {
39 return expected.input.split(":")[0];
40 }
41 return "other";
42 }
43
44 subsetTestByKey(getKey(expected), test, function() {
45 var url = bURL(expected.input, base)

Callers 1

runURLTestsFunction · 0.70

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected