Home / Function/ TestContextWithKeysMutex() — gin Function Reference

TestContextWithKeysMutex() — gin Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

context_test.go lines 3076–3087

func TestContextWithKeysMutex(t *testing.T) {
	c := &Context{}
	c.Set("foo", "bar")

	value, err := c.Get("foo")
	assert.Equal(t, "bar", value)
	assert.True(t, err)

	value, err = c.Get("foo2")
	assert.Nil(t, value)
	assert.False(t, err)
}

Domain

Subdomains

Defined In

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free