MCPcopy Create free account
hub / github.com/modem-dev/hunk / createLargeSplitStreamBootstrap

Function createLargeSplitStreamBootstrap

benchmarks/large-stream-fixture.ts:125–156  ·  view source on GitHub ↗
({
  fileCount = DEFAULT_FILE_COUNT,
  linesPerFile = DEFAULT_LINES_PER_FILE,
  changedStartLine,
  changedEndLine,
  contentVariant = "ascii",
}: LargeSplitStreamFixtureOptions = {})

Source from the content-addressed store, hash-verified

123}
124
125export function createLargeSplitStreamBootstrap({
126 fileCount = DEFAULT_FILE_COUNT,
127 linesPerFile = DEFAULT_LINES_PER_FILE,
128 changedStartLine,
129 changedEndLine,
130 contentVariant = "ascii",
131}: LargeSplitStreamFixtureOptions = {}): AppBootstrap {
132 return {
133 input: {
134 kind: "vcs",
135 staged: false,
136 options: {
137 mode: "auto",
138 },
139 },
140 changeset: {
141 id: `changeset:large-split-stream:${fileCount}:${linesPerFile}:${contentVariant}`,
142 sourceLabel: "repo",
143 title: "repo working tree",
144 files: createLargeSplitStreamFiles({
145 fileCount,
146 linesPerFile,
147 changedStartLine,
148 changedEndLine,
149 contentVariant,
150 }),
151 },
152 initialMode: "split",
153 initialTheme: "midnight",
154 initialShowAgentNotes: false,
155 };
156}
157
158/**
159 * Build one giant single-file DiffFile by synthesizing unified patch text directly.

Callers 7

mainFunction · 0.90
createNonAsciiBootstrapFunction · 0.90
createBenchmarkRendererFunction · 0.90
memory.tsFile · 0.90
measureNavigationFunction · 0.90
measureScrollingFunction · 0.90
mainFunction · 0.90

Calls 1

Tested by

no test coverage detected