(agent, url)
| 182 | dispatcher[agentSymbol].dispatch.called = false |
| 183 | }) |
| 184 | const usesProxyAgent = async (agent, url) => { |
| 185 | await fetch(url, { dispatcher }) |
| 186 | const result = agentSymbols.every((agentSymbol) => agent === agentSymbol |
| 187 | ? dispatcher[agentSymbol].dispatch.called === true |
| 188 | : dispatcher[agentSymbol].dispatch.called === false) |
| 189 | |
| 190 | agentSymbols.forEach((agentSymbol) => { |
| 191 | dispatcher[agentSymbol].dispatch.called = false |
| 192 | }) |
| 193 | return result |
| 194 | } |
| 195 | const doesNotProxy = usesProxyAgent.bind(this, kNoProxyAgent) |
| 196 | return { |
| 197 | dispatcher, |
no test coverage detected
searching dependent graphs…