Home / Function/ TestContextHandlerNames() — gin Function Reference

TestContextHandlerNames() — gin Function Reference

Architecture documentation for the TestContextHandlerNames() function in context_test.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  e93b81a0_b76e_170b_c186_835ee6b6d72f["TestContextHandlerNames()"]
  ebe0ae48_a62b_a38f_5bac_5bbbd96fc508["context_test.go"]
  e93b81a0_b76e_170b_c186_835ee6b6d72f -->|defined in| ebe0ae48_a62b_a38f_5bac_5bbbd96fc508
  style e93b81a0_b76e_170b_c186_835ee6b6d72f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

context_test.go lines 698–708

func TestContextHandlerNames(t *testing.T) {
	c, _ := CreateTestContext(httptest.NewRecorder())
	c.handlers = HandlersChain{func(c *Context) {}, nil, handlerNameTest, func(c *Context) {}, handlerNameTest2}

	names := c.HandlerNames()

	assert.Len(t, names, 4)
	for _, name := range names {
		assert.Regexp(t, `^(.*/vendor/)?(github\.com/gin-gonic/gin\.){1}(TestContextHandlerNames\.func.*){0,1}(handlerNameTest.*){0,1}`, name)
	}
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does TestContextHandlerNames() do?
TestContextHandlerNames() is a function in the gin codebase, defined in context_test.go.
Where is TestContextHandlerNames() defined?
TestContextHandlerNames() is defined in context_test.go at line 698.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free