- checker - Variable in class org.checkerframework.framework.test.CheckerFrameworkPerFileTest
-
The checker to use for tests.
- CheckerFrameworkPerDirectoryTest - Class in org.checkerframework.framework.test
-
Compiles all test files in a test directory together.
- CheckerFrameworkPerDirectoryTest(List<File>, Class<? extends AbstractProcessor>, String, String...) - Constructor for class org.checkerframework.framework.test.CheckerFrameworkPerDirectoryTest
-
Creates a new checker test.
- CheckerFrameworkPerDirectoryTest(List<File>, Class<? extends AbstractProcessor>, String, List<String>, String...) - Constructor for class org.checkerframework.framework.test.CheckerFrameworkPerDirectoryTest
-
Creates a new checker test.
- CheckerFrameworkPerDirectoryTest(List<File>, List<String>, String, List<String>, String...) - Constructor for class org.checkerframework.framework.test.CheckerFrameworkPerDirectoryTest
-
Creates a new checker test.
- CheckerFrameworkPerFileTest - Class in org.checkerframework.framework.test
-
Compiles all test files individually.
- CheckerFrameworkPerFileTest(File, Class<? extends AbstractProcessor>, String, String...) - Constructor for class org.checkerframework.framework.test.CheckerFrameworkPerFileTest
-
Creates a new checker test.
- CheckerFrameworkWPIPerDirectoryTest - Class in org.checkerframework.framework.test
-
- CheckerFrameworkWPIPerDirectoryTest(List<File>, Class<? extends AbstractProcessor>, String, String...) - Constructor for class org.checkerframework.framework.test.CheckerFrameworkWPIPerDirectoryTest
-
Creates a new checker test.
- checkerNames - Variable in class org.checkerframework.framework.test.CheckerFrameworkPerDirectoryTest
-
The binary names of the checkers to run.
- checkerOptions - Variable in class org.checkerframework.framework.test.CheckerFrameworkPerDirectoryTest
-
Extra options to pass to javac when running the checker.
- checkerOptions - Variable in class org.checkerframework.framework.test.CheckerFrameworkPerFileTest
-
Extra options to pass to javac when running the checker.
- classpathExtra - Variable in class org.checkerframework.framework.test.CheckerFrameworkPerDirectoryTest
-
Extra entries for the classpath.
- close() - Method in class org.checkerframework.framework.test.diagnostics.JavaDiagnosticReader
-
- CompilationResult - Class in org.checkerframework.framework.test
-
CompilationResult represents the output of the compiler after it is run.
- compile(TestConfiguration) - Method in class org.checkerframework.framework.test.TypecheckExecutor
-
Using the settings from the input configuration, compile all source files in the configuration,
and return the result in a CompilationResult.
- compiledWithoutError() - Method in class org.checkerframework.framework.test.CompilationResult
-
Returns whether or not compilation succeeded without errors or exceptions.
- continuationPart(String) - Static method in class org.checkerframework.framework.test.diagnostics.TestDiagnosticUtils
-
Return the continuation part.
- customizeOptions(List<String>) - Method in class org.checkerframework.framework.test.CheckerFrameworkPerDirectoryTest
-
Override this method if you would like to supply a checker command-line option that depends on
the Java files passed to the test.
- customizeOptions(List<String>) - Method in class org.checkerframework.framework.test.CheckerFrameworkPerFileTest
-
Override this method if you would like to supply a checker command-line option that depends on
the Java file passed to the test.
- findComparisonFile(File) - Static method in class org.checkerframework.framework.test.TestUtilities
-
- findFilesInParent(File, String...) - Static method in class org.checkerframework.framework.test.TestUtilities
-
Prepends a file to the beginning of each filename.
- findJavaFilesPerDirectory(File, String...) - Static method in class org.checkerframework.framework.test.TestUtilities
-
Returns a list where each item is a list of Java files, excluding any skip tests, for each
directory given by dirName and also a list for any subdirectory.
- findNestedJavaTestFiles(String...) - Static method in class org.checkerframework.framework.test.TestUtilities
-
- findRelativeNestedJavaFiles(String, String...) - Static method in class org.checkerframework.framework.test.TestUtilities
-
- findRelativeNestedJavaFiles(File, String...) - Static method in class org.checkerframework.framework.test.TestUtilities
-
- flatOptions() - Method in class org.checkerframework.framework.test.TestConfigurationBuilder
-
Returns the set of Javac options as a flat list.
- formatJavaxToolString(String, boolean) - Static method in class org.checkerframework.framework.test.diagnostics.TestDiagnosticUtils
-
Given a javax diagnostic, return a pair of (trimmed, fileame), where "trimmed" is the first
line of the message, without the leading filename.
- fromCompilationResults(TestConfiguration, CompilationResult, List<TestDiagnostic>) - Static method in class org.checkerframework.framework.test.TypecheckResult
-
- fromDiagnosticFileLine(String) - Static method in class org.checkerframework.framework.test.diagnostics.TestDiagnosticUtils
-
Convert a line in a DiagnosticFile to a TestDiagnosticLine.
- fromDiagnosticFileString(String) - Static method in class org.checkerframework.framework.test.diagnostics.TestDiagnosticUtils
-
Instantiate the diagnostic based on a string that would appear in diagnostic files (i.e.
- fromJavaFileComment(String, long, String) - Static method in class org.checkerframework.framework.test.diagnostics.TestDiagnosticUtils
-
Instantiate the diagnostic from a string that would appear in a Java file, e.g.: "error:
(message)"
- fromJavaSourceLine(String, String, long) - Static method in class org.checkerframework.framework.test.diagnostics.TestDiagnosticUtils
-
Convert a line in a Java source file to a TestDiagnosticLine.
- fromJavaxDiagnosticList(List<Diagnostic<? extends JavaFileObject>>, boolean) - Static method in class org.checkerframework.framework.test.diagnostics.TestDiagnosticUtils
-
- fromJavaxToolsDiagnostic(String, boolean) - Static method in class org.checkerframework.framework.test.diagnostics.TestDiagnosticUtils
-
Instantiate a diagnostic from output produced by the Java compiler.
- fromJSpecifyFileComment(String, long, String) - Static method in class org.checkerframework.framework.test.diagnostics.TestDiagnosticUtils
-
Instantiate the diagnostic from a JSpecify string that would appear in a Java file, e.g.:
"jspecify_some_category".
- fromParseString(String) - Static method in enum org.checkerframework.framework.test.diagnostics.DiagnosticKind
-
Convert a string as it would appear in error messages or source code into a DiagnosticKind.
- fromPatternMatching(Pattern, Pattern, String, Long, String) - Static method in class org.checkerframework.framework.test.diagnostics.TestDiagnosticUtils
-
Instantiate the diagnostic via pattern-matching against patterns.
- TestConfiguration - Interface in org.checkerframework.framework.test
-
A configuration for running CheckerFrameworkTests or running the TypecheckExecutor.
- TestConfigurationBuilder - Class in org.checkerframework.framework.test
-
Used to create an instance of TestConfiguration.
- TestConfigurationBuilder() - Constructor for class org.checkerframework.framework.test.TestConfigurationBuilder
-
Note: There are static helper methods named buildConfiguration and buildConfigurationBuilder
that can be used to create the most common types of configurations
- TestConfigurationBuilder(TestConfiguration) - Constructor for class org.checkerframework.framework.test.TestConfigurationBuilder
-
Create a builder that has all of the options in initialConfig.
- TestDiagnostic - Class in org.checkerframework.framework.test.diagnostics
-
Represents an expected error/warning message in a Java test file or an error/warning reported by
the Javac compiler.
- TestDiagnostic(String, long, DiagnosticKind, String, boolean, boolean) - Constructor for class org.checkerframework.framework.test.diagnostics.TestDiagnostic
-
Basic constructor that sets the immutable fields of this diagnostic.
- TestDiagnosticLine - Class in org.checkerframework.framework.test.diagnostics
-
Represents a list of TestDiagnostics, which was read from a one line of a file.
- TestDiagnosticLine(String, long, String, List<TestDiagnostic>) - Constructor for class org.checkerframework.framework.test.diagnostics.TestDiagnosticLine
-
- TestDiagnosticUtils - Class in org.checkerframework.framework.test.diagnostics
-
A set of utilities and factory methods useful for working with TestDiagnostics.
- TestDiagnosticUtils() - Constructor for class org.checkerframework.framework.test.diagnostics.TestDiagnosticUtils
-
- testDir - Variable in class org.checkerframework.framework.test.CheckerFrameworkPerDirectoryTest
-
The path, relative to currentDir/test to the directory containing test inputs.
- testDir - Variable in class org.checkerframework.framework.test.CheckerFrameworkPerFileTest
-
The path, relative to currentDir/test to the directory containing test inputs.
- testFile - Variable in class org.checkerframework.framework.test.CheckerFrameworkPerFileTest
-
The file containing test code, which will be type-checked.
- testFiles - Variable in class org.checkerframework.framework.test.CheckerFrameworkPerDirectoryTest
-
The files containing test code, which will be type-checked.
- TESTS_OUTPUTDIR - Static variable in class org.checkerframework.framework.test.TestConfigurationBuilder
-
- TestUtilities - Class in org.checkerframework.framework.test
-
Utilities for testing.
- TestUtilities() - Constructor for class org.checkerframework.framework.test.TestUtilities
-
- toString() - Method in class org.checkerframework.framework.test.diagnostics.TestDiagnostic
-
Returns a representation of this diagnostic as if it appeared in a diagnostics file.
- toString() - Method in class org.checkerframework.framework.test.ImmutableTestConfiguration
-
- toString() - Method in class org.checkerframework.framework.test.TestConfigurationBuilder
-
- TypecheckExecutor - Class in org.checkerframework.framework.test
-
Used by the Checker Framework test suite to run the framework and generate a test result.
- TypecheckExecutor() - Constructor for class org.checkerframework.framework.test.TypecheckExecutor
-
Creates a new TypecheckExecutor.
- TypecheckResult - Class in org.checkerframework.framework.test
-
Represents the test results from typechecking one or more Java files using the given
TestConfiguration.
- TypecheckResult(TestConfiguration, CompilationResult, List<TestDiagnostic>, List<TestDiagnostic>, List<TestDiagnostic>) - Constructor for class org.checkerframework.framework.test.TypecheckResult
-