(t testing.TB, opts ...EnvOption)
| 3980 | } |
| 3981 | |
| 3982 | func testEnv(t testing.TB, opts ...EnvOption) *Env { |
| 3983 | t.Helper() |
| 3984 | e, err := NewEnv(opts...) |
| 3985 | if err != nil { |
| 3986 | t.Fatalf("NewEnv() failed: %v", err) |
| 3987 | } |
| 3988 | return e |
| 3989 | } |
| 3990 | |
| 3991 | func compile(t testing.TB, env *Env, expr string) Program { |
| 3992 | t.Helper() |
no test coverage detected