(t testing.TB, opts ...EnvOption)
| 4377 | } |
| 4378 | |
| 4379 | func testEnv(t testing.TB, opts ...EnvOption) *Env { |
| 4380 | t.Helper() |
| 4381 | e, err := NewEnv(opts...) |
| 4382 | if err != nil { |
| 4383 | t.Fatalf("NewEnv() failed: %v", err) |
| 4384 | } |
| 4385 | return e |
| 4386 | } |
| 4387 | |
| 4388 | func compile(t testing.TB, env *Env, expr string) Program { |
| 4389 | t.Helper() |
no test coverage detected