Skip to content

Commit

Permalink
fix: dap error (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil authored Jul 3, 2024
1 parent 555feb0 commit d9b0bb2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lua/neotest-golang/parse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ local M = {}
--- @param tree neotest.Tree
--- @return table<string, neotest.Result>
function M.results(spec, result, tree)
if spec.context.skip == true then
---@type table<string, neotest.Result>
local results = {}
results[spec.context.id] = {
---@type neotest.ResultStatus
status = "skipped", -- default value
}

return results
end

--- The Neotest position tree node for this execution.
--- @type neotest.Position
local pos = tree:data()
Expand Down

0 comments on commit d9b0bb2

Please sign in to comment.