Interface LLMVerifyingCodemodTestMixin

All Superinterfaces:
io.codemodder.testutils.CodemodTestMixin

public interface LLMVerifyingCodemodTestMixin extends io.codemodder.testutils.CodemodTestMixin
A mixin for codemod tests that use the LLM framework to change the code.
  • Field Details

  • Method Details

    • getRequirementsPrompt

      String getRequirementsPrompt()
      If a codemod's changes don't exactly match the .java.after file, the LLM will use these requirements to assess whether the changes are similar enough to pass the test.
    • verifyTransformedCode

      default void verifyTransformedCode(Path before, Path expected, Path after) throws IOException
      Specified by:
      verifyTransformedCode in interface io.codemodder.testutils.CodemodTestMixin
      Throws:
      IOException