()
| 30 | private SourceFile externs = SourceFile.fromCode("externs", ""); |
| 31 | |
| 32 | @Before // Runs before tests are executed |
| 33 | public void initCompiler() { |
| 34 | // Don't use threads |
| 35 | compiler.disableThreads(); |
| 36 | // Don't print things |
| 37 | options.setPrintConfig(false); |
| 38 | // Enable all safe optimizations |
| 39 | CompilationLevel.SIMPLE_OPTIMIZATIONS.setOptionsForCompilationLevel(options); |
| 40 | } |
| 41 | |
| 42 | /** Compiles an input and returns its result */ |
| 43 | private Result compile(SourceFile input) { |
nothing calls this directly
no outgoing calls
no test coverage detected