diff --git a/lua/gopher/gotests.lua b/lua/gopher/gotests.lua index f98b365..f185026 100644 --- a/lua/gopher/gotests.lua +++ b/lua/gopher/gotests.lua @@ -39,7 +39,7 @@ function gotests.func_test() return end - add_test { "-only", ns.name } + add_test { "-only", "^" .. ns.name .. "$" } end ---generate unit tests for all functions in current file