Skip to content

Commit

Permalink
refactor: only pass used arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Sep 8, 2024
1 parent 43985f1 commit 4f8f15a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lua/neotest-golang/process.lua
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ function M.test_results(spec, result, tree)
-- show various warnings
M.show_warnings(res)

-- Convert internal test result data into final Neotest result.
local test_results = M.to_neotest_result(spec, result, res, gotest_output)
-- convert internal test result data into final Neotest result.
local test_results = M.to_neotest_result(res)
for k, v in pairs(test_results) do
neotest_result[k] = v
end
Expand Down Expand Up @@ -393,12 +393,9 @@ function M.show_warnings(d)
end

--- Populate final Neotest results based on internal test result data.
--- @param spec neotest.RunSpec
--- @param result neotest.StrategyResult
--- @param res table<string, TestData>
--- @param gotest_output table
--- @return table<string, neotest.Result>
function M.to_neotest_result(spec, result, res, gotest_output)
function M.to_neotest_result(res)
--- Neotest results.
--- @type table<string, neotest.Result>
local neotest_result = {}
Expand Down

0 comments on commit 4f8f15a

Please sign in to comment.