Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a NullSpecTypeValidator to ensure unspecified type variables are ok #178

Merged
merged 11 commits into from
Jul 25, 2024
Merged
Prev Previous commit
Next Next commit
Add strict regression tests
  • Loading branch information
wmdietl committed Jul 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit a4d555cb2f2fbabd71ef5011c13bd44ac9164c46
12 changes: 12 additions & 0 deletions src/test/java/tests/NullSpecTest.java
Original file line number Diff line number Diff line change
@@ -54,6 +54,18 @@ public static String[] getTestDirs() {
}
}

/** A small set of strict regression tests. */
public static class RegressionStrict extends NullSpecTest {
public RegressionStrict(List<File> testFiles) {
super(testFiles, true);
}

@Parameters
public static String[] getTestDirs() {
return new String[] {"regression-strict"};
}
}

/** A test that ignores cases where there is limited nullness information. */
public static class Lenient extends NullSpecTest {
public Lenient(List<File> testFiles) {
File renamed without changes.