From 5b9a69a8c802875f74de725247bd89ab3c9176b9 Mon Sep 17 00:00:00 2001 From: Fredrik Averpil Date: Sat, 15 Jun 2024 22:50:37 +0200 Subject: [PATCH] chore: cleanup --- lua/neotest-golang/results_dir.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lua/neotest-golang/results_dir.lua b/lua/neotest-golang/results_dir.lua index 1a36708d..615c8419 100644 --- a/lua/neotest-golang/results_dir.lua +++ b/lua/neotest-golang/results_dir.lua @@ -204,7 +204,10 @@ 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 @@ -212,8 +215,6 @@ function M.show_warnings(res) 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