(body)
| 11051 | "use strict"; |
| 11052 | var { MockNotMatchedError } = require_mock_errors(); |
| 11053 | var { |
| 11054 | kDispatches, |
| 11055 | kMockAgent, |
| 11056 | kOriginalDispatch, |
| 11057 | kOrigin, |
| 11058 | kGetNetConnect |
| 11059 | } = require_mock_symbols(); |
| 11060 | var { buildURL } = require_util(); |
| 11061 | var { STATUS_CODES } = __require("http"); |
| 11062 | var { |
| 11063 | types: { |
| 11064 | isPromise |
| 11065 | } |
| 11066 | } = __require("util"); |
| 11067 | function matchValue(match, value) { |
| 11068 | if (typeof match === "string") { |
| 11069 | return match === value; |
| 11070 | } |
| 11071 | if (match instanceof RegExp) { |
| 11072 | return match.test(value); |
| 11073 | } |
| 11074 | if (typeof match === "function") { |
| 11075 | return match(value) === true; |
| 11076 | } |
nothing calls this directly
no test coverage detected