MCPcopy Create free account
hub / github.com/angular/dev-infra / match

Method match

github-actions/saucelabs/set-saucelabs-env.js:16347–16369  ·  view source on GitHub ↗
(_0)

Source from the content-addressed store, hash-verified

16345 throw webidl.errors.exception({
16346 header: "Cache.#batchCacheOperations",
16347 message: "expected http or https scheme"
16348 });
16349 }
16350 if (r.method !== "GET") {
16351 throw webidl.errors.exception({
16352 header: "Cache.#batchCacheOperations",
16353 message: "not get method"
16354 });
16355 }
16356 if (operation.options != null) {
16357 throw webidl.errors.exception({
16358 header: "Cache.#batchCacheOperations",
16359 message: "options must not be defined"
16360 });
16361 }
16362 requestResponses = __privateMethod(this, _queryCache, queryCache_fn).call(this, operation.request);
16363 for (const requestResponse of requestResponses) {
16364 const idx = cache.indexOf(requestResponse);
16365 assert(idx !== -1);
16366 cache.splice(idx, 1);
16367 }
16368 cache.push([operation.request, operation.response]);
16369 addedItems.push([operation.request, operation.response]);
16370 }
16371 resultList.push([operation.request, operation.response]);
16372 }

Callers

nothing calls this directly

Calls 5

__asyncFunction · 0.70
__privateGetFunction · 0.70
hasMethod · 0.45
getMethod · 0.45
matchMethod · 0.45

Tested by

no test coverage detected