Skip to content

Commit

Permalink
refactor: rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Jul 3, 2024
1 parent bad873e commit 99abebd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lua/neotest-golang/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ function M.Adapter.results(spec, result, tree)
if spec.context.pos_type == "dir" then
-- A test command executed a directory of tests and the output/status must
-- now be processed.
local results = parse.results(spec, result, tree)
local results = parse.test_results(spec, result, tree)
M.workaround_neotest_issue_391(result)
return results
elseif spec.context.pos_type == "test" then
-- A test command executed a single test and the output/status must now be
-- processed.
local results = parse.results(spec, result, tree)
local results = parse.test_results(spec, result, tree)
M.workaround_neotest_issue_391(result)
return results
end
Expand Down
2 changes: 1 addition & 1 deletion lua/neotest-golang/parse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ local M = {}
--- @param result neotest.StrategyResult
--- @param tree neotest.Tree
--- @return table<string, neotest.Result>
function M.results(spec, result, tree)
function M.test_results(spec, result, tree)
if spec.context.debug_and_skip == true then
---@type table<string, neotest.Result>
local results = {}
Expand Down

0 comments on commit 99abebd

Please sign in to comment.