Skip to content

Commit

Permalink
fix: incorrect runspec type
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Jun 16, 2024
1 parent a4003f3 commit ccda92d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lua/neotest-golang/runspec_dir.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ end
--- @param pos neotest.Position
--- @param cwd string
--- @param test_pattern string
--- @return neotest.RunSpec
--- @return neotest.RunSpec | neotest.RunSpec[] | nil
function M.build_dir_test_runspec(pos, cwd, test_pattern)
local gotest = {
"go",
Expand Down
2 changes: 1 addition & 1 deletion lua/neotest-golang/runspec_file.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local M = {}
--- Build runspec for a directory.
--- @param pos neotest.Position
--- @param tree neotest.Tree
--- @return neotest.RunSpec | nil
--- @return neotest.RunSpec | neotest.RunSpec[] | nil
function M.build(pos, tree)
if utils.table_is_empty(tree:children()) then
--- Runspec designed for files that contain no tests.
Expand Down
2 changes: 1 addition & 1 deletion lua/neotest-golang/runspec_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local M = {}
--- Build runspec for a single test
--- @param pos neotest.Position
--- @param strategy string
--- @return neotest.RunSpec
--- @return neotest.RunSpec | neotest.RunSpec[] | nil
function M.build(pos, strategy)
--- @type string
local test_name = convert.to_gotest_test_name(pos.id)
Expand Down

0 comments on commit ccda92d

Please sign in to comment.