(t *testing.T)
| 284 | } |
| 285 | |
| 286 | func TestContextDestroy(t *testing.T) { |
| 287 | c, _ := e.NewContext() |
| 288 | c.Destroy() |
| 289 | |
| 290 | if c.context != nil || c.values != nil { |
| 291 | t.Errorf("Context.Destroy(): Did not set internal fields to `nil`") |
| 292 | } |
| 293 | |
| 294 | // Attempting to destroy a context twice should be a no-op. |
| 295 | c.Destroy() |
| 296 | } |
| 297 | |
| 298 | func TestContextEnd(t *testing.T) { |
| 299 | e.Destroy() |
nothing calls this directly
no test coverage detected