test: refactor exec_lua in xdiff_spec

This commit is contained in:
Lewis Russell
2024-09-29 11:20:18 +01:00
parent c65646c247
commit 0fb5299e53
3 changed files with 58 additions and 47 deletions

View File

@@ -11,7 +11,7 @@
--- - `count_a` (`integer`): Hunk size in {a}.
--- - `start_b` (`integer`): Start line of hunk in {b}.
--- - `count_b` (`integer`): Hunk size in {b}.
--- @field on_hunk? fun(start_a: integer, count_a: integer, start_b: integer, count_b: integer): integer
--- @field on_hunk? fun(start_a: integer, count_a: integer, start_b: integer, count_b: integer): integer?
---
--- Form of the returned diff:
--- - `unified`: String in unified format.