(t *testing.T)
| 279 | } |
| 280 | |
| 281 | func TestCustomEnvError(t *testing.T) { |
| 282 | env, err := NewCustomEnv(StdLib(), StdLib()) |
| 283 | if err != nil { |
| 284 | t.Fatalf("NewCustomEnv() failed: %v", err) |
| 285 | } |
| 286 | _, iss := compileOrError(t, env, "a.b.c == true") |
| 287 | if iss == nil { |
| 288 | t.Error("got successful compile, expected error for duplicate function declarations.") |
| 289 | } |
| 290 | } |
| 291 | |
| 292 | func TestCustomEnv(t *testing.T) { |
| 293 | env, err := NewCustomEnv(Variable("a.b.c", BoolType)) |
nothing calls this directly
no test coverage detected