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
  ad43d80b_46a1_e81f_f83d_d4f8efd26a9d["TestRouteStaticNoListing()"]
  69c2add5_555a_3d82_a4e7_993886631a2c["PerformRequest()"]
  ad43d80b_46a1_e81f_f83d_d4f8efd26a9d -->|calls| 69c2add5_555a_3d82_a4e7_993886631a2c
  style ad43d80b_46a1_e81f_f83d_d4f8efd26a9d 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

Frequently Asked Questions

What does TestRouteStaticNoListing() do?
TestRouteStaticNoListing() is a function in the gin codebase.
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