Package org.sonar.iac.common.testing
Class Verifier
- java.lang.Object
-
- org.sonar.iac.common.testing.Verifier
-
public final class Verifier extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVerifier.Issuestatic classVerifier.TestContext
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidverify(TreeParser<Tree> parser, Path path, IacCheck check)static voidverify(TreeParser<Tree> parser, Path path, IacCheck check, Function<org.sonarsource.analyzer.commons.checks.verifier.SingleFileVerifier,Verifier.TestContext> contextSupplier)static voidverify(TreeParser<Tree> parser, Path path, IacCheck check, Verifier.Issue... expectedIssues)This method should only be used if "Noncompliant" comments in the code cannot be used to verify the issues.static voidverifyNoIssue(TreeParser<Tree> parser, Path path, IacCheck check)static voidverifyNoIssue(TreeParser<Tree> parser, Path path, IacCheck check, Function<org.sonarsource.analyzer.commons.checks.verifier.SingleFileVerifier,Verifier.TestContext> contextSupplier)
-
-
-
Method Detail
-
verify
public static void verify(TreeParser<Tree> parser, Path path, IacCheck check)
-
verify
public static void verify(TreeParser<Tree> parser, Path path, IacCheck check, Function<org.sonarsource.analyzer.commons.checks.verifier.SingleFileVerifier,Verifier.TestContext> contextSupplier)
-
verify
public static void verify(TreeParser<Tree> parser, Path path, IacCheck check, Verifier.Issue... expectedIssues)
This method should only be used if "Noncompliant" comments in the code cannot be used to verify the issues.
-
verifyNoIssue
public static void verifyNoIssue(TreeParser<Tree> parser, Path path, IacCheck check)
-
verifyNoIssue
public static void verifyNoIssue(TreeParser<Tree> parser, Path path, IacCheck check, Function<org.sonarsource.analyzer.commons.checks.verifier.SingleFileVerifier,Verifier.TestContext> contextSupplier)
-
-