Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Jun 15, 2024
1 parent d2dc213 commit 5b9a69a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lua/neotest-golang/results_dir.lua
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,17 @@ function M.show_warnings(res)
-- warn if Go package/test is missing from tree node.
-- TODO: make configurable to skip this or use different log level?
for pos_id in pairs(res) do
if res[pos_id].gotest_data.name == "" then
if
res[pos_id].gotest_data.package == ""
or res[pos_id].gotest_data.name == ""
then
vim.notify(
"Unable to associate go package/test with neotest tree node: " .. pos_id,
vim.log.levels.WARN
)
end
end

-- TODO: warn (or debug log) if Go test was detected, but is not found in the AST/treesitter tree.

-- warn about duplicate tests
-- TODO: make debug level configurable
for pos_id in pairs(res) do
Expand Down

0 comments on commit 5b9a69a

Please sign in to comment.