Home / Function/ TestDir() — gin Function Reference

TestDir() — gin Function Reference

Architecture documentation for the TestDir() function in fs_test.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  6d8a56ae_2be5_d63b_01af_ea26794fdee5["TestDir()"]
  77c2ea48_94c9_7fb8_e9da_d5b6e60ec481["fs_test.go"]
  6d8a56ae_2be5_d63b_01af_ea26794fdee5 -->|defined in| 77c2ea48_94c9_7fb8_e9da_d5b6e60ec481
  style 6d8a56ae_2be5_d63b_01af_ea26794fdee5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

fs_test.go lines 67–72

func TestDir(t *testing.T) {
	testRoot := "foo"
	fs := Dir(testRoot, false)

	assert.Equal(t, &OnlyFilesFS{FileSystem: http.Dir(testRoot)}, fs)
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does TestDir() do?
TestDir() is a function in the gin codebase, defined in fs_test.go.
Where is TestDir() defined?
TestDir() is defined in fs_test.go at line 67.

Analyze Your Own Codebase

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

Try Supermodel Free