TestCompiler returns a TestRunnerOption which configures the test runner with a compiler created using the set of compiler options.
(compileOpts ...any)
| 449 | // TestCompiler returns a TestRunnerOption which configures the test runner with |
| 450 | // a compiler created using the set of compiler options. |
| 451 | func TestCompiler(compileOpts ...any) TestRunnerOption { |
| 452 | return func(tr *TestRunner) (*TestRunner, error) { |
| 453 | c, err := compiler.NewCompiler(compileOpts...) |
| 454 | if err != nil { |
| 455 | return nil, err |
| 456 | } |
| 457 | tr.Compiler = c |
| 458 | return tr, nil |
| 459 | } |
| 460 | } |
| 461 | |
| 462 | // CustomTestCompiler returns a TestRunnerOption which configures the test runner with |
| 463 | // a custom compiler. |
no test coverage detected