Class AinferTestCheckerStubsGenerationTest


public class AinferTestCheckerStubsGenerationTest extends AinferGeneratePerDirectoryTest
Tests whole-program inference with the aid of stub files. This test is the first pass on the test data, which generates the stubs.

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 stub files are similar to the expected ones. The errors on .java files must be ignored.

  • Constructor Details

    • AinferTestCheckerStubsGenerationTest

      public AinferTestCheckerStubsGenerationTest(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