Home / Function/ TestEngineHandleMethodNotAllowedCornerCase() — gin Function Reference

TestEngineHandleMethodNotAllowedCornerCase() — gin Function Reference

Architecture documentation for the TestEngineHandleMethodNotAllowedCornerCase() function in routes_test.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  23a94fee_e48c_6996_235e_17018e089a8f["TestEngineHandleMethodNotAllowedCornerCase()"]
  45929e18_70ca_7c55_01e0_596be99dd824["routes_test.go"]
  23a94fee_e48c_6996_235e_17018e089a8f -->|defined in| 45929e18_70ca_7c55_01e0_596be99dd824
  9785c910_0083_377a_37b6_92b299e0e32d["PerformRequest()"]
  23a94fee_e48c_6996_235e_17018e089a8f -->|calls| 9785c910_0083_377a_37b6_92b299e0e32d
  style 23a94fee_e48c_6996_235e_17018e089a8f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

routes_test.go lines 774–791

func TestEngineHandleMethodNotAllowedCornerCase(t *testing.T) {
	r := New()
	r.HandleMethodNotAllowed = true

	base := r.Group("base")
	base.GET("/metrics", handlerTest1)

	v1 := base.Group("v1")

	v1.GET("/:id/devices", handlerTest1)
	v1.GET("/user/:id/groups", handlerTest1)

	v1.GET("/orgs/:id", handlerTest1)
	v1.DELETE("/orgs/:id", handlerTest1)

	w := PerformRequest(r, http.MethodGet, "/base/v1/user/groups")
	assert.Equal(t, http.StatusNotFound, w.Code)
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does TestEngineHandleMethodNotAllowedCornerCase() do?
TestEngineHandleMethodNotAllowedCornerCase() is a function in the gin codebase, defined in routes_test.go.
Where is TestEngineHandleMethodNotAllowedCornerCase() defined?
TestEngineHandleMethodNotAllowedCornerCase() is defined in routes_test.go at line 774.
What does TestEngineHandleMethodNotAllowedCornerCase() call?
TestEngineHandleMethodNotAllowedCornerCase() calls 1 function(s): PerformRequest.

Analyze Your Own Codebase

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

Try Supermodel Free