Class TypecheckResult
java.lang.Object
org.checkerframework.framework.test.TypecheckResult
Represents the test results from typechecking one or more Java files using the given
TestConfiguration.
-
Constructor Summary
ModifierConstructorDescriptionprotected
TypecheckResult
(TestConfiguration configuration, CompilationResult compilationResult, List<TestDiagnostic> expectedDiagnostics, List<TestDiagnostic> missingDiagnostics, List<TestDiagnostic> unexpectedDiagnostics) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static TypecheckResult
fromCompilationResults
(TestConfiguration configuration, CompilationResult result, List<TestDiagnostic> expectedDiagnostics) List<Diagnostic<? extends JavaFileObject>>
Summarize unexpected and missing diagnostics.
-
Constructor Details
-
TypecheckResult
protected TypecheckResult(TestConfiguration configuration, CompilationResult compilationResult, List<TestDiagnostic> expectedDiagnostics, List<TestDiagnostic> missingDiagnostics, List<TestDiagnostic> unexpectedDiagnostics)
-
-
Method Details
-
getConfiguration
-
getCompilationResult
-
getActualDiagnostics
-
getExpectedDiagnostics
-
didTestFail
public boolean didTestFail() -
getMissingDiagnostics
-
getUnexpectedDiagnostics
-
getErrorHeaders
-
summarize
Summarize unexpected and missing diagnostics.- Returns:
- summary of failures
-
fromCompilationResults
public static TypecheckResult fromCompilationResults(TestConfiguration configuration, CompilationResult result, List<TestDiagnostic> expectedDiagnostics)
-