MCPcopy Create free account
hub / github.com/angular/dev-infra / [kMockAgentGet]

Method [kMockAgentGet]

github-actions/browserstack/set-browserstack-env.js:11612–11630  ·  view source on GitHub ↗
(origin)

Source from the content-addressed store, hash-verified

11610 }
11611 /**
11612 * Sets up the base interceptor for mocking replies from undici.
11613 */
11614 intercept(opts) {
11615 return new MockInterceptor(opts, this[kDispatches]);
11616 }
11617 [kClose]() {
11618 return __async(this, null, function* () {
11619 yield promisify(this[kOriginalClose])();
11620 this[kConnected] = 0;
11621 this[kMockAgent][Symbols.kClients].delete(this[kOrigin]);
11622 });
11623 }
11624 };
11625 module.exports = MockPool;
11626 }
11627 });
11628
11629 //
11630 var require_pluralizer = __commonJS({
11631 ""(exports, module) {
11632 "use strict";
11633 var singulars = {

Callers

nothing calls this directly

Calls 2

matchValueFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected