aboutsummaryrefslogtreecommitdiff
path: root/tests/test-system-lib--format-region-with-program.el
Commit message (Collapse)AuthorAgeFilesLines
* refactor: extract shared format-region helper into system-libCraig Jennings29 hours1-0/+68
prog-json and prog-yaml each carried a byte-identical cj/--<lang>-format-region that runs a formatter over the buffer via call-process-region and replaces it on exit 0. Hoist it to system-lib as cj/format-region-with-program with a generic output buffer, and point both formatters at it. Adds the first direct unit coverage of the helper (Normal, Boundary, Error).