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

Function TestEngineNewContext

engine/engine_test.go:52–61  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

50}
51
52func TestEngineNewContext(t *testing.T) {
53 _, err := e.NewContext()
54 if err != nil {
55 t.Errorf("NewContext(): %s", err)
56 }
57
58 if len(e.contexts) != 1 {
59 t.Errorf("NewContext(): `Engine.contexts` length is %d, should be 1", len(e.contexts))
60 }
61}
62
63func TestEngineDefine(t *testing.T) {
64 ctor := func(args []interface{}) interface{} {

Callers

nothing calls this directly

Calls 1

NewContextMethod · 0.80

Tested by

no test coverage detected