Package io.codemodder.testutils.llm
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
static enum
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionIf 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.default void
verifyTransformedCode
(Path before, Path expected, Path after) Methods inherited from interface io.codemodder.testutils.CodemodTestMixin
generateTestCases
-
Field Details
-
SYSTEM_MESSAGE_TEMPLATE
- See Also:
-
USER_MESSAGE_TEMPLATE
- See Also:
-
-
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
- Specified by:
verifyTransformedCode
in interfaceio.codemodder.testutils.CodemodTestMixin
- Throws:
IOException
-