Skip to content

Commit

Permalink
chore: more log
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Jul 22, 2024
1 parent fa8f79f commit 817e8da
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lua/neotest-golang/process.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
.. "(.-)"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 817e8da

Please sign in to comment.