-
Methods in com.google.errorprone that return CompilationTestHelper
Modifier and Type |
Method |
Description |
CompilationTestHelper |
CompilationTestHelper.addModules(String... modules) |
|
CompilationTestHelper |
CompilationTestHelper.addSourceFile(String path) |
Adds a source file to the test compilation, from an existing resource file.
|
CompilationTestHelper |
CompilationTestHelper.addSourceLines(String path,
String... lines) |
Adds a source file to the test compilation, from the string content of the file.
|
CompilationTestHelper |
CompilationTestHelper.expectErrorMessage(String key,
com.google.common.base.Predicate<? super String> matcher) |
Expects an error message matching matcher at the line below a comment matching the key.
|
CompilationTestHelper |
CompilationTestHelper.expectNoDiagnostics() |
Tells the compilation helper to expect that no diagnostics will be generated, even if the
source file contains bug markers.
|
CompilationTestHelper |
CompilationTestHelper.expectResult(com.sun.tools.javac.main.Main.Result result) |
Tells the compilation helper to expect a specific result from the compilation, e.g.
|
CompilationTestHelper |
CompilationTestHelper.matchAllDiagnostics() |
By default, the compilation helper will only inspect diagnostics generated by the check being
tested.
|
static CompilationTestHelper |
CompilationTestHelper.newInstance(ScannerSupplier scannerSupplier,
Class<?> clazz) |
|
static CompilationTestHelper |
CompilationTestHelper.newInstance(Class<? extends BugChecker> checker,
Class<?> clazz) |
|
CompilationTestHelper |
CompilationTestHelper.setArgs(String... args) |
Sets custom command-line arguments for the compilation.
|
CompilationTestHelper |
CompilationTestHelper.setArgs(List<String> args) |
Sets custom command-line arguments for the compilation.
|
CompilationTestHelper |
CompilationTestHelper.withClasspath(Class<?>... classes) |
Sets the classpath for the test compilation, overriding the default of using the runtime
classpath of the test execution.
|