Skip to content

Commit

Permalink
refactor: consistent variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Sep 21, 2024
1 parent d6638d6 commit 130a049
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lua/neotest-golang/runspec/namespace.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ function M.build(pos)
end

local test_name = lib.convert.to_gotest_test_name(pos.id)
test_name = lib.convert.to_gotest_regex_pattern(test_name)
local test_name_regexp = lib.convert.to_gotest_regex_pattern(test_name)

local cmd_data = {
package_or_path = test_folder_absolute_path,
position = pos,
regexp = test_name,
regexp = test_name_regexp,
}
local test_cmd, json_filepath = lib.cmd.test_command(cmd_data)

Expand Down
6 changes: 3 additions & 3 deletions lua/neotest-golang/runspec/test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,19 @@ function M.build(pos, strategy)
end

local test_name = lib.convert.to_gotest_test_name(pos.id)
local test_name_regex = lib.convert.to_gotest_regex_pattern(test_name)
local test_name_regexp = lib.convert.to_gotest_regex_pattern(test_name)

local cmd_data = {
package_or_path = test_folder_absolute_path,
position = pos,
regexp = test_name_regex,
regexp = test_name_regexp,
}
local test_cmd, json_filepath = lib.cmd.test_command(cmd_data)

local runspec_strategy = nil
if strategy == "dap" then
M.assert_dap_prerequisites()
runspec_strategy = dap.get_dap_config(test_name_regex)
runspec_strategy = dap.get_dap_config(test_name_regexp)
logger.debug("DAP strategy used: " .. vim.inspect(runspec_strategy))
dap.setup_debugging(test_folder_absolute_path)
end
Expand Down

0 comments on commit 130a049

Please sign in to comment.