MCPcopy
hub / github.com/promptfoo/promptfoo / fetch.test.ts

File fetch.test.ts

test/fetch.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import * as fsPromises from 'node:fs/promises';
2import path from 'node:path';
3
4import { Agent, interceptors, ProxyAgent } from 'undici';

Callers

nothing calls this directly

Calls 15

clearAgentCacheFunction · 0.90
fetchWithProxyFunction · 0.90
mockProcessEnvFunction · 0.90
getRequestTimeoutMsFunction · 0.90
clearProxyEnvFunction · 0.90
getEnvBoolFunction · 0.90
createMockResponseFunction · 0.90
fetchWithTimeoutFunction · 0.90
isRateLimitedFunction · 0.90
handleRateLimitFunction · 0.90
computeRateLimitWaitMsFunction · 0.90
fetchWithRetriesFunction · 0.90

Tested by

no test coverage detected