For go-tests on saving, only search tests in files named *_test.go

This commit is contained in:
Marco 2023-11-29 10:20:05 +01:00
parent 5d6834275b
commit 06f23dd1a6

View File

@ -126,7 +126,7 @@ function M.goRunTests()
end
function M.goSetAllMarks()
local files = vim.fn.system({ "find", "-type", "f", "-name", "*.go" })
local files = vim.fn.system({ "find", "-type", "f", "-name", "*_test.go" })
local sep = "\n"
local filetable = {}