Home / Function/ TestContextGetStringMap() — gin Function Reference

TestContextGetStringMap() — gin Function Reference

Architecture documentation for the TestContextGetStringMap() function in context_test.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  0a5ff8e2_33ff_85e2_5bfa_02b03272a690["TestContextGetStringMap()"]
  ebe0ae48_a62b_a38f_5bac_5bbbd96fc508["context_test.go"]
  0a5ff8e2_33ff_85e2_5bfa_02b03272a690 -->|defined in| ebe0ae48_a62b_a38f_5bac_5bbbd96fc508
  style 0a5ff8e2_33ff_85e2_5bfa_02b03272a690 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

context_test.go lines 638–646

func TestContextGetStringMap(t *testing.T) {
	c, _ := CreateTestContext(httptest.NewRecorder())
	m := make(map[string]any)
	m["foo"] = 1
	c.Set("map", m)

	assert.Equal(t, m, c.GetStringMap("map"))
	assert.Equal(t, 1, c.GetStringMap("map")["foo"])
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does TestContextGetStringMap() do?
TestContextGetStringMap() is a function in the gin codebase, defined in context_test.go.
Where is TestContextGetStringMap() defined?
TestContextGetStringMap() is defined in context_test.go at line 638.

Analyze Your Own Codebase

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

Try Supermodel Free