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

File fetch.compression.test.ts

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

Source from the content-addressed store, hash-verified

1import { createServer, type IncomingMessage, type Server, type ServerResponse } from 'node:http';
2import { brotliCompressSync, deflateSync, gzipSync } from 'node:zlib';
3
4import { afterEach, beforeEach, describe, expect, it } from 'vitest';

Callers

nothing calls this directly

Calls 15

mockProcessEnvFunction · 0.90
clearAgentCacheFunction · 0.90
fetchWithProxyFunction · 0.90
restoreProxyEnvFunction · 0.85
resolveFunction · 0.85
startCompressedServerFunction · 0.85
itFunction · 0.85
parseMethod · 0.80
onMethod · 0.80
pushMethod · 0.80
startServerFunction · 0.70
closeMethod · 0.65

Tested by

no test coverage detected