(t *testing.T)
| 406 | } |
| 407 | |
| 408 | func TestSetGetDelete(t *testing.T) { |
| 409 | c, _ := CreateTestContext(httptest.NewRecorder()) |
| 410 | key := "example-key" |
| 411 | value := "example-value" |
| 412 | c.Set(key, value) |
| 413 | val, exists := c.Get(key) |
| 414 | assert.True(t, exists) |
| 415 | assert.Equal(t, val, value) |
| 416 | c.Delete(key) |
| 417 | _, exists = c.Get(key) |
| 418 | assert.False(t, exists) |
| 419 | } |
| 420 | |
| 421 | func TestContextGetInt(t *testing.T) { |
| 422 | c, _ := CreateTestContext(httptest.NewRecorder()) |
nothing calls this directly
no test coverage detected