MCPcopy Create free account
hub / github.com/anthropics/claude-code / cutAtCap

Function cutAtCap

mods/diff/tests/git/parse/parse-file-diffs.test.ts:14–15  ·  view source on GitHub ↗
(printed: readonly Fixtures.PrintedFile[])

Source from the content-addressed store, hash-verified

12 body?.hunks.flatMap(hunk => hunk.lines)
13
14 const cutAtCap = (printed: readonly Fixtures.PrintedFile[]) =>
15 Fixtures.hunksAnswerOf(printed).slice(0, Limits.HOST_OUTPUT_CAP_BYTES)
16
17 test('an empty answer: every file asked reads no hunks', () => {
18 expect([...Parse.parseFileDiffs('', ['a.ts', 'b.ts'])]).toEqual([

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected