fix bugs after upgrading to neovim 0.12
tests / test (push) Successful in 10s

This commit is contained in:
2026-05-12 08:34:04 +02:00
parent 5d205c0302
commit cb1095feeb
4 changed files with 33 additions and 33 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
local cwd = vim.loop.cwd()
local cwd = vim.uv.cwd()
vim.opt.runtimepath:append(cwd)
package.path = table.concat({
cwd .. "/lua/?.lua",
+14 -14
View File
@@ -43,7 +43,7 @@ describe("test-samurai core (no bundled runners)", function()
end
function runner.find_nearest(bufnr, _row, _col)
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.loop.cwd(), test_name = "TestA" }
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.uv.cwd(), test_name = "TestA" }
end
function runner.build_command(spec)
@@ -159,7 +159,7 @@ describe("test-samurai core (no bundled runners)", function()
end
function runner.find_nearest(bufnr, _row, _col)
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.loop.cwd(), test_name = "TestA" }
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.uv.cwd(), test_name = "TestA" }
end
function runner.build_command(spec)
@@ -272,7 +272,7 @@ describe("test-samurai core (no bundled runners)", function()
end
function runner.find_nearest(bufnr, _row, _col)
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.loop.cwd(), test_name = "TestA" }
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.uv.cwd(), test_name = "TestA" }
end
function runner.build_command(spec)
@@ -358,7 +358,7 @@ describe("test-samurai core (no bundled runners)", function()
end
function runner.find_nearest(bufnr, _row, _col)
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.loop.cwd(), test_name = "TestA" }
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.uv.cwd(), test_name = "TestA" }
end
function runner.build_command(spec)
@@ -499,7 +499,7 @@ describe("test-samurai core (no bundled runners)", function()
end
function runner.find_nearest(bufnr, _row, _col)
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.loop.cwd(), test_name = "TestA" }
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.uv.cwd(), test_name = "TestA" }
end
function runner.build_command(spec)
@@ -576,7 +576,7 @@ describe("test-samurai core (no bundled runners)", function()
end
function runner.find_nearest(bufnr, _row, _col)
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.loop.cwd(), test_name = "TestA" }
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.uv.cwd(), test_name = "TestA" }
end
function runner.build_command(spec)
@@ -655,7 +655,7 @@ describe("test-samurai core (no bundled runners)", function()
end
function runner.find_nearest(bufnr, _row, _col)
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.loop.cwd(), test_name = "TestA" }
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.uv.cwd(), test_name = "TestA" }
end
function runner.build_command(spec)
@@ -750,7 +750,7 @@ describe("test-samurai core (no bundled runners)", function()
end
function runner.find_nearest(bufnr, _row, _col)
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.loop.cwd(), test_name = "TestA" }
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.uv.cwd(), test_name = "TestA" }
end
function runner.build_command(spec)
@@ -831,7 +831,7 @@ describe("test-samurai core (no bundled runners)", function()
end
function runner.find_nearest(bufnr, _row, _col)
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.loop.cwd(), test_name = "TestA" }
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.uv.cwd(), test_name = "TestA" }
end
local build_specs = {}
@@ -929,7 +929,7 @@ describe("test-samurai core (no bundled runners)", function()
end
function runner.find_nearest(bufnr, _row, _col)
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.loop.cwd(), test_name = "TestA" }
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.uv.cwd(), test_name = "TestA" }
end
function runner.build_command(spec)
@@ -1031,7 +1031,7 @@ describe("test-samurai core (no bundled runners)", function()
end
function runner.find_nearest(bufnr, _row, _col)
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.loop.cwd(), test_name = "TestA" }
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.uv.cwd(), test_name = "TestA" }
end
function runner.build_command(spec)
@@ -1151,7 +1151,7 @@ describe("test-samurai core (no bundled runners)", function()
end
function runner.find_nearest(bufnr, _row, _col)
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.loop.cwd(), test_name = "TestB" }
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.uv.cwd(), test_name = "TestB" }
end
function runner.build_command(spec)
@@ -1256,7 +1256,7 @@ describe("test-samurai core (no bundled runners)", function()
end
function runner.find_nearest(bufnr, _row, _col)
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.loop.cwd(), test_name = "TestC" }
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.uv.cwd(), test_name = "TestC" }
end
function runner.build_command(spec)
@@ -1369,7 +1369,7 @@ describe("test-samurai core (no bundled runners)", function()
end
function runner.find_nearest(bufnr, _row, _col)
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.loop.cwd(), test_name = "TestJump" }
return { file = vim.api.nvim_buf_get_name(bufnr), cwd = vim.uv.cwd(), test_name = "TestJump" }
end
function runner.build_command(spec)