Skip to content

Commit

Permalink
remove extra packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-x committed Oct 31, 2023
1 parent d52dc22 commit 762fe1a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lua/go/gotest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,6 @@ local function run_tests_with_ts_node(args, func_node, tblcase_ns)
end
end

local fpath = M.get_test_path()
table.insert(cmd, fpath)

if test_runner == 'dlv' then
local runflag = string.format("-test.run='^%s$'%s", func_node.name, tbl_name)
table.insert(cmd, 3, fpath)
Expand Down Expand Up @@ -618,7 +615,7 @@ M.test_file = function(...)
-- table.insert(cmd_args, '-coverprofile=' .. optarg['C'])
-- end
--
local cmd_args, optarg = cmd_builder('', args)
local cmd_args, optarg = cmd_builder(relpath, args)

table.insert(cmd_args, '-run')

Expand All @@ -628,7 +625,6 @@ M.test_file = function(...)
tests = "'" .. tests .. "'"
end
table.insert(cmd_args, tests) -- shell script | is a pipe
table.insert(cmd_args, relpath)

if optarg['F'] or _GO_NVIM_CFG.run_in_floaterm then
install('richgo')
Expand All @@ -644,6 +640,7 @@ M.test_file = function(...)
cmd_args = { 'dlv', 'test', relpath, '--', '-test.run', tests }
local term = require('go.term').run
term({ cmd = table.concat(cmd_args, ' '), autoclose = false })
log(cmd_args)
return cmd_args
end

Expand Down

0 comments on commit 762fe1a

Please sign in to comment.