MCPcopy Create free account
hub / github.com/deuill/go-php / TestContextDestroy

Function TestContextDestroy

engine/context_test.go:286–296  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

284}
285
286func 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
298func TestContextEnd(t *testing.T) {
299 e.Destroy()

Callers

nothing calls this directly

Calls 2

DestroyMethod · 0.95
NewContextMethod · 0.80

Tested by

no test coverage detected