(filePath)
| 6 | const { ensureMarker } = require("../lib/patch"); |
| 7 | |
| 8 | function assertFileExists(filePath) { |
| 9 | if (!fs.existsSync(filePath)) throw new Error(`missing file: ${filePath}`); |
| 10 | return filePath; |
| 11 | } |
| 12 | |
| 13 | function loadPatchText(filePath, { marker } = {}) { |
| 14 | const target = assertFileExists(filePath); |
no outgoing calls
no test coverage detected