fix: test fun defaults (#77)

The default package parameter for TestFun is not needed because this
function is meant to target the current file only. Using the default
package parameter increased run time of time function drastically.

Co-authored-by: Ales Brelih <ales.brelih@3fs.si>
pull/79/head
Aleš Brelih 2 years ago committed by GitHub
parent b1271d5e6a
commit d369ef454d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -175,9 +175,6 @@ M.test_fun = function(...)
if empty(ns) then
return false
end
local repath = utils.rel_path() or ""
local package = repath .. utils.sep() .. "..."
local tags, args2 = get_build_tags(args)
local argsstr = ""
@ -204,9 +201,6 @@ M.test_fun = function(...)
end
if not empty(args2) then
cmd = vim.list_extend(cmd, args2)
else
argsstr = package
table.insert(cmd, argsstr)
end
if ns.name:find("Bench") then

Loading…
Cancel
Save