(t *testing.T)
| 299 | } |
| 300 | |
| 301 | func TestCustomEnvError(t *testing.T) { |
| 302 | env, err := NewCustomEnv(StdLib(), StdLib()) |
| 303 | if err != nil { |
| 304 | t.Fatalf("NewCustomEnv() failed: %v", err) |
| 305 | } |
| 306 | _, iss := compileOrError(t, env, "a.b.c == true") |
| 307 | if iss == nil { |
| 308 | t.Error("got successful compile, expected error for duplicate function declarations.") |
| 309 | } |
| 310 | } |
| 311 | |
| 312 | func TestCustomEnv(t *testing.T) { |
| 313 | env, err := NewCustomEnv(Variable("a.b.c", BoolType)) |
nothing calls this directly
no test coverage detected