Home / Function/ TestContextGetStringMapStringSlice() — gin Function Reference

TestContextGetStringMapStringSlice() — gin Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

context_test.go lines 658–666

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

	assert.Equal(t, m, c.GetStringMapStringSlice("map"))
	assert.Equal(t, []string{"foo"}, c.GetStringMapStringSlice("map")["foo"])
}

Domain

Subdomains

Defined In

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free