Class AinferTestCheckerJaifsGenerationTest


public class AinferTestCheckerJaifsGenerationTest extends AinferGeneratePerDirectoryTest
Runs whole-program inference and inserts annotations into source code.

IMPORTANT: The errors captured in the tests located in tests/ainfer-testchecker/ are not relevant. The meaning of this test class is to test if the generated .jaif files are similar to the expected ones. The errors on .java files must be ignored.

  • Constructor Details

    • AinferTestCheckerJaifsGenerationTest

      public AinferTestCheckerJaifsGenerationTest(List<File> testFiles)
      Parameters:
      testFiles - the files containing test code, which will be type-checked
  • Method Details

    • getTestDirs

      public static String[] getTestDirs()
    • resolveTestDirectory

      protected File resolveTestDirectory()
      Resolves the test root directory from the optional TestRootDirectory annotation or falls back to the default of currentDir/tests.
      Returns:
      the resolved directory
    • checkResult

      public void checkResult(TypecheckResult typecheckResult)
      Check that the TypecheckResult did not fail.
      Parameters:
      typecheckResult - result to check