+6
README.md
+6
README.md
+12
lua/gopher/gotests.lua
+12
lua/gopher/gotests.lua
···
56
56
add_test(cmd_args)
57
57
end
58
58
59
+
---generate unit tests for all exported functions
60
+
---@param parallel boolean
61
+
function M.all_exported_tests(parallel)
62
+
local cmd_args = {}
63
+
if parallel then
64
+
table.insert(cmd_args, "-parallel")
65
+
end
66
+
67
+
table.insert(cmd_args, "-exported")
68
+
add_test(cmd_args)
69
+
end
70
+
59
71
return M
+1
lua/gopher/init.lua
+1
lua/gopher/init.lua
+1
plugin/gopher.vim
+1
plugin/gopher.vim
···
2
2
command! -nargs=* GoTagRm :lua require"gopher".tags_rm(<f-args>)
3
3
command! -nargs=* GoTestAdd :lua require"gopher".test_add(<f-args>)
4
4
command! -nargs=* GoTestsAll :lua require"gopher".tests_all(<f-args>)
5
+
command! -nargs=* GoTestsExp :lua require"gopher".test_exported(<f-args>)
5
6
command! -nargs=* GoMod :lua require"gopher".mod(<f-args>)
6
7
command! -nargs=* GoGet :lua require"gopher".get(<f-args>)
7
8
command! -nargs=* GoImpl :lua require"gopher".impl(<f-args>)