GithubHelp home page GithubHelp logo

Comments (8)

akinsho avatar akinsho commented on August 10, 2024 1

Please feel free to open a PR to help fix this. This plugin has no official maintainer and is entirely contributed by the community.

from neotest-go.

sergii4 avatar sergii4 commented on August 10, 2024 1

@marcomayer seems so. Nice catch. I can take a look later

from neotest-go.

sergii4 avatar sergii4 commented on August 10, 2024 1

Probably it is a nvim-treestitter issue. I run same query on the online tree-sitter playground and using tree-sittier-go locally and all is works perfectly.
This issue only reproduces in nvim environment
I have opened a bug on nvim-treesitter repo.

from neotest-go.

sergii4 avatar sergii4 commented on August 10, 2024 1

@akinsho @marcomayer I pulled out last version of nvim that includes fix:

NVIM v0.9.0-dev-1149+gf9a46391a-dirty
Build type: Release
LuaJIT 2.1.0-beta3

Everything works for me now.

Could you please check it on your side?

Screenshot 2023-03-06 at 12 46 47

from neotest-go.

marcomayer avatar marcomayer commented on August 10, 2024

Okay, thanks. I've spent half an hour trying to understand what's going on there but as treesitter queries are new for me, I'd need to spend much more time to get a grasp on this. Till then I'll turn test_tables off for now.

from neotest-go.

marcomayer avatar marcomayer commented on August 10, 2024

Unfortunately, there's still an issue starting at more than 9 tests, using this example:

func TestSomeTest(t *testing.T) {
	tt := []struct {
		name   string
		method string
		url    string
		apiKey string
		status int
	}{
		{name: "AccessDenied1", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},
		{name: "AccessDenied2", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},
		{name: "AccessDenied3", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},
		{name: "AccessDenied4", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},
		{name: "AccessDenied5", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},
		{name: "AccessDenied6", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},

		{name: "AccessDenied7", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},
		{name: "AccessDenied8", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},
		{name: "AccessDenied9", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},
		{name: "AccessDenied10", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},
	}
	for _, tc := range tt {
		tc := tc
		t.Run(tc.name, func(t *testing.T) {
			fmt.Println(tc.name, tc.method, tc.url, tc.apiKey, tc.status)
		})
	}
}

"AccessDenied1" falls out of the results. @sergii4 @akinsho should we reopen this issue?

from neotest-go.

marcomayer avatar marcomayer commented on August 10, 2024

@sergii4 thanks a lot, yes this fixes it!

from neotest-go.

sergii4 avatar sergii4 commented on August 10, 2024

@marcomayer thanks for drawing attention to it!

from neotest-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.