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

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

Analyze Your Own Codebase

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

Try Supermodel Free