()
| 114 | } |
| 115 | |
| 116 | export 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 | } |
no test coverage detected