From 817e8da24826a9d0c7cec374851b37dbb51e090c Mon Sep 17 00:00:00 2001 From: Fredrik Averpil Date: Mon, 22 Jul 2024 17:24:36 +0200 Subject: [PATCH] chore: more log --- lua/neotest-golang/process.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lua/neotest-golang/process.lua b/lua/neotest-golang/process.lua index 9bde4b12..6d3462b2 100644 --- a/lua/neotest-golang/process.lua +++ b/lua/neotest-golang/process.lua @@ -227,6 +227,12 @@ function M.decorate_with_go_package_and_test_name( for _, gotestline in ipairs(gotest_output) do if gotestline.Action == "run" and gotestline.Test ~= nil then if gotestline.Package == golistline.ImportPath then + logger.debug({ + "Match log with position", + pos_id, + gotestline.Test, + gotestline.Package, + }) local pattern = lib.convert.to_lua_pattern(folderpath) .. lib.find.os_path_sep .. "(.-)" @@ -325,8 +331,6 @@ function M.show_warnings(d) if test_data.gotest_data.pkg == "" or test_data.gotest_data.name == "" then - logger.debug("INVALID TEST DATA") - logger.debug(vim.inspect(d)) table.insert(position_ids, pos_id) end end