Home / Function/ TestRouterStaticFSFileNotFound() — gin Function Reference

TestRouterStaticFSFileNotFound() — gin Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  97aa5825_8abd_53a1_0299_d102b4e3739c["TestRouterStaticFSFileNotFound()"]
  69c2add5_555a_3d82_a4e7_993886631a2c["PerformRequest()"]
  97aa5825_8abd_53a1_0299_d102b4e3739c -->|calls| 69c2add5_555a_3d82_a4e7_993886631a2c
  style 97aa5825_8abd_53a1_0299_d102b4e3739c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

routes_test.go lines 649–657

func TestRouterStaticFSFileNotFound(t *testing.T) {
	router := New()

	router.StaticFS("/", http.FileSystem(http.Dir(".")))

	assert.NotPanics(t, func() {
		PerformRequest(router, http.MethodGet, "/nonexistent")
	})
}

Domain

Subdomains

Frequently Asked Questions

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