1 parent 272cc53 commit c61cfddCopy full SHA for c61cfdd
1 file changed
lua/neotest-golang/init.lua
@@ -95,13 +95,13 @@ end
95
--- @param file_path string
96
--- @return boolean
97
function M.Adapter.is_test_file(file_path)
98
- if not go_available() then
+ if not vim.endswith(file_path, "_test.go") then
99
return false
100
end
101
- if lib.goenv.should_skip(file_path, vim.uv.cwd()) then
+ if not go_available() then
102
103
104
- return vim.endswith(file_path, "_test.go")
+ return not lib.goenv.should_skip(file_path, vim.uv.cwd())
105
106
107
--- Given a file path, parse all the tests within it.
0 commit comments