Home / Function/ TestRouteStaticNoListing() — gin Function Reference

TestRouteStaticNoListing() — gin Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

routes_test.go lines 462–470

func TestRouteStaticNoListing(t *testing.T) {
	router := New()
	router.Static("/", "./")

	w := PerformRequest(router, http.MethodGet, "/")

	assert.Equal(t, http.StatusNotFound, w.Code)
	assert.NotContains(t, w.Body.String(), "gin.go")
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does TestRouteStaticNoListing() do?
TestRouteStaticNoListing() is a function in the gin codebase, defined in routes_test.go.
Where is TestRouteStaticNoListing() defined?
TestRouteStaticNoListing() is defined in routes_test.go at line 462.
What does TestRouteStaticNoListing() call?
TestRouteStaticNoListing() 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