Home / Function/ TestContextSetGetPanicsWhenKeyNotComparable() — gin Function Reference

TestContextSetGetPanicsWhenKeyNotComparable() — gin Function Reference

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

Entity Profile

Relationship Graph

Source Code

context_test.go lines 366–374

func TestContextSetGetPanicsWhenKeyNotComparable(t *testing.T) {
	c, _ := CreateTestContext(httptest.NewRecorder())

	assert.Panics(t, func() {
		c.Set([]int{1}, 1)
		c.Set(func() {}, 1)
		c.Set(make(chan int), 1)
	})
}

Domain

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free