[mirror] Make your go dev experience better github.com/olexsmir/gopher.nvim
neovim golang
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(testutils): validate provided cursor position

+4
+4
spec/testutils.lua
··· 78 78 ---@param pos? number[] 79 79 ---@return gopher.TestUtilsSetup 80 80 function testutils.setup_test(fixture, child, pos) 81 + vim.validate("pos", pos, "table", true) 82 + 81 83 local tmp = testutils.tmpfile() 82 84 local fixtures = testutils.get_fixtures(fixture) 83 85 ··· 86 88 87 89 local bufnr = child.fn.bufnr(tmp) 88 90 if pos then 91 + assert(#pos == 2, "invalid cursor position") 92 + 89 93 child.fn.setpos(".", { bufnr, unpack(pos) }) 90 94 end 91 95