(t *testing.T)
| 50 | } |
| 51 | |
| 52 | func 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 | |
| 63 | func TestEngineDefine(t *testing.T) { |
| 64 | ctor := func(args []interface{}) interface{} { |
nothing calls this directly
no test coverage detected