MCPcopy
hub / github.com/nodejs/undici / mock-interceptor.js

File mock-interceptor.js

test/mock-interceptor.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1'use strict'
2
3const { describe, test, after } = require('node:test')
4const { MockInterceptor, MockScope } = require('../lib/mock/mock-interceptor')

Callers

nothing calls this directly

Calls 13

fetchFunction · 0.85
replyMethod · 0.80
okMethod · 0.80
replyWithErrorMethod · 0.80
defaultReplyHeadersMethod · 0.80
defaultReplyTrailersMethod · 0.80
disableNetConnectMethod · 0.80
closeMethod · 0.65
getMethod · 0.65
interceptMethod · 0.65
forEachMethod · 0.65
jsonMethod · 0.65

Tested by

no test coverage detected