test(struct_tags): add support for multiple structs

This commit is contained in:
Oleksandr Smirnov 2025-03-18 21:21:14 +02:00
parent 59169df030
commit 59a0e961c4
No known key found for this signature in database
4 changed files with 49 additions and 1 deletions

View file

@ -34,4 +34,16 @@ T["struct_tags"]["works remove"] = function()
t.eq(t.readfile(tmp), fixtures.output)
end
T["struct_tags"]["works many structs"] = function()
local tmp = t.tmpfile()
local fixtures = t.get_fixtures "tags/many"
t.writefile(tmp, fixtures.input)
child.cmd("silent edit " .. tmp)
child.fn.setpos(".", { child.fn.bufnr "%", 10, 3, 0 })
child.cmd "GoTagAdd testing"
t.eq(t.readfile(tmp), fixtures.output)
end
return T