feat(gotests): generate tests only for exported func

docs(gotests): generate test for exported funcs
This commit is contained in:
Smirnov Oleksandr 2022-06-23 13:22:06 +03:00
parent c5096aacc0
commit b4fd34ec17
4 changed files with 20 additions and 0 deletions

View file

@ -56,4 +56,16 @@ function M.all_tests(parallel)
add_test(cmd_args)
end
---generate unit tests for all exported functions
---@param parallel boolean
function M.all_exported_tests(parallel)
local cmd_args = {}
if parallel then
table.insert(cmd_args, "-parallel")
end
table.insert(cmd_args, "-exported")
add_test(cmd_args)
end
return M