(t *testing.T)
| 364 | } |
| 365 | |
| 366 | func TestContextSetGetPanicsWhenKeyNotComparable(t *testing.T) { |
| 367 | c, _ := CreateTestContext(httptest.NewRecorder()) |
| 368 | |
| 369 | assert.Panics(t, func() { |
| 370 | c.Set([]int{1}, 1) |
| 371 | c.Set(func() {}, 1) |
| 372 | c.Set(make(chan int), 1) |
| 373 | }) |
| 374 | } |
| 375 | |
| 376 | func TestContextSetGetValues(t *testing.T) { |
| 377 | c, _ := CreateTestContext(httptest.NewRecorder()) |
nothing calls this directly
no test coverage detected