(t *testing.T)
| 383 | } |
| 384 | |
| 385 | func TestCustomEnvError(t *testing.T) { |
| 386 | env, err := NewCustomEnv(StdLib(), StdLib()) |
| 387 | if err != nil { |
| 388 | t.Fatalf("NewCustomEnv() failed: %v", err) |
| 389 | } |
| 390 | _, iss := compileOrError(t, env, "a.b.c == true") |
| 391 | if iss == nil { |
| 392 | t.Error("got successful compile, expected error for duplicate function declarations.") |
| 393 | } |
| 394 | } |
| 395 | |
| 396 | func TestCustomEnv(t *testing.T) { |
| 397 | env, err := NewCustomEnv(Variable("a.b.c", BoolType)) |
nothing calls this directly
no test coverage detected