Skip to content

Commit

Permalink
chore: rename get_prefix to get_test_id
Browse files Browse the repository at this point in the history
  • Loading branch information
encero committed Feb 27, 2024
1 parent 70a38ab commit 3760d92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/neotest-go/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function adapter.build_spec(args)

local run_flag = {}
if position.type == "test" then
run_flag = { "-run", "^" .. utils.get_prefix(args.tree) .. "$" }
run_flag = { "-run", "^" .. utils.get_test_id(args.tree) .. "$" }
end

local command = vim.tbl_flatten({
Expand Down
2 changes: 1 addition & 1 deletion lua/neotest-go/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ end

---@param tree neotest.Tree
---@return string
function utils.get_prefix(tree)
function utils.get_test_id(tree)
local parts = {}

-- build test name for potentially deeply nested tests
Expand Down

0 comments on commit 3760d92

Please sign in to comment.