Home / Function/ TestLoadHTMLGlobFromFuncMap() — gin Function Reference

TestLoadHTMLGlobFromFuncMap() — gin Function Reference

Architecture documentation for the TestLoadHTMLGlobFromFuncMap() function in gin_test.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  b28722c6_5c28_6f2a_e10c_67b5c66d4cbe["TestLoadHTMLGlobFromFuncMap()"]
  936be97e_cadf_7cb7_50da_f99734bf8011["setupHTMLFiles()"]
  b28722c6_5c28_6f2a_e10c_67b5c66d4cbe -->|calls| 936be97e_cadf_7cb7_50da_f99734bf8011
  style b28722c6_5c28_6f2a_e10c_67b5c66d4cbe fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

gin_test.go lines 190–208

func TestLoadHTMLGlobFromFuncMap(t *testing.T) {
	ts := setupHTMLFiles(
		t,
		DebugMode,
		false,
		func(router *Engine) {
			router.LoadHTMLGlob("./testdata/template/*")
		},
	)
	defer ts.Close()

	res, err := http.Get(ts.URL + "/raw")
	if err != nil {
		t.Error(err)
	}

	resp, _ := io.ReadAll(res.Body)
	assert.Equal(t, "Date: 2017/07/01", string(resp))
}

Domain

Subdomains

Frequently Asked Questions

What does TestLoadHTMLGlobFromFuncMap() do?
TestLoadHTMLGlobFromFuncMap() is a function in the gin codebase.
What does TestLoadHTMLGlobFromFuncMap() call?
TestLoadHTMLGlobFromFuncMap() calls 1 function(s): setupHTMLFiles.

Analyze Your Own Codebase

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

Try Supermodel Free