MCPcopy Index your code
hub / github.com/modem-dev/hunk / createTestHeaderOnlyDiffFile

Function createTestHeaderOnlyDiffFile

test/helpers/diff-helpers.ts:116–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114}
115
116export function createTestHeaderOnlyDiffFile(): DiffFile {
117 const file = createTestDiffFile({
118 before: "const alpha = 1;\n",
119 after: "const alpha = 2;\n",
120 id: "header-only",
121 path: "header-only.ts",
122 });
123
124 return {
125 ...file,
126 metadata: {
127 ...file.metadata,
128 isPartial: true,
129 hunks: file.metadata.hunks.map((hunk) => ({
130 ...hunk,
131 additionLines: 0,
132 deletionLines: 0,
133 hunkContent: [],
134 })),
135 },
136 };
137}

Callers 1

Calls 1

createTestDiffFileFunction · 0.70

Tested by

no test coverage detected