MCPcopy Index your code
hub / github.com/anomalyco/opencode / fatConfig

Function fatConfig

packages/opencode/test/server/httpapi-compression.test.ts:18–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16// /config echoes the config back. Padding the config pushes the response body
17// well past the 1024 B threshold so we can observe compression behavior.
18function fatConfig() {
19 const instructions: string[] = []
20 for (let i = 0; i < 50; i++) {
21 instructions.push(`padding-instruction-${i}-${"x".repeat(40)}`)
22 }
23 return {
24 formatter: false,
25 lsp: false,
26 username: "compression-test-user",
27 instructions,
28 }
29}
30
31describe("HttpApi compression", () => {
32 describe("encodes responses", () => {

Callers 1

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected