diff --git a/lua/neotest-golang/ast.lua b/lua/neotest-golang/ast.lua index c21f0a0..595bdeb 100644 --- a/lua/neotest-golang/ast.lua +++ b/lua/neotest-golang/ast.lua @@ -27,16 +27,6 @@ function M.detect_tests(file_path) name: (field_identifier) @test.name (#match? @test.name "^(Test|Example)")) @test.definition ]] - local receiver_method = [[ - ; query for receiver method, to be used as test suite namespace - (method_declaration - receiver: (parameter_list - (parameter_declaration - ; name: (identifier) - type: (pointer_type - (type_identifier) @namespace.name )))) @namespace.definition - ]] - local table_tests = [[ ;; query for list table tests (block @@ -137,7 +127,7 @@ function M.detect_tests(file_path) (#eq? @test.key.name @test.key.name1)))))))) ]] - local query = test_function .. test_method .. receiver_method .. table_tests + local query = test_function .. test_method .. table_tests local opts = { nested_tests = true } ---@type neotest.Tree