Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/nodejs/undici
/ mock-agent.js
File
mock-agent.js
test/mock-agent.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
'use strict'
2
3
const
{ test, after, describe } = require(
'node:test'
)
4
const
{ createServer } = require(
'node:http'
)
Callers
nothing calls this directly
Calls
15
setGlobalDispatcher
Function · 0.85
fetch
Function · 0.85
createServer
Function · 0.85
getResponse
Function · 0.85
intercept
Function · 0.85
ok
Method · 0.80
getCallHistory
Method · 0.80
persist
Method · 0.80
reply
Method · 0.80
calls
Method · 0.80
enableCallHistory
Method · 0.80
disableCallHistory
Method · 0.80
Tested by
no test coverage detected