We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Description
There is used Enum variable duplication in the test generated by Symbolic engine.
To Reproduce
enums/ClassWithEnum
Expected behavior
No unneeded variables are expected to be created.
Actual behavior
There is unneeded variable finalStatusEnum create after assertion. It contains the same value as statusEnum used in the test.
finalStatusEnum
Visual proofs (screenshots, logs, images)
///region SYMBOLIC EXECUTION: SUCCESSFUL EXECUTIONS for method changeMutableField(enums.ClassWithEnum.StatusEnum) /** * @utbot.classUnderTest {@link ClassWithEnum} * @utbot.methodUnderTest {@link ClassWithEnum#changeMutableField(StatusEnum)} * @utbot.executesCondition {@code (statusEnum == StatusEnum.READY): True} * @utbot.returnsFrom {@code return StatusEnum.READY.mutableInt;} */ @Test public void testChangeMutableField_StatusEnumEqualsStatusEnumREADY() { ClassWithEnum classWithEnum = new ClassWithEnum(); StatusEnum statusEnum = StatusEnum.READY; int actual = classWithEnum.changeMutableField(statusEnum); assertEquals(2, actual); StatusEnum finalStatusEnum = statusEnum; }
Environment
Windows 10 Pro IntelliJ IDEA 2022.3.3 Ultimate IntelliJ project, JDK 17
Additional context
There were workarounds for Enums already made, but it happens to be the issue in the engine.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
There is used Enum variable duplication in the test generated by Symbolic engine.
To Reproduce
enums/ClassWithEnum
Expected behavior
No unneeded variables are expected to be created.
Actual behavior
There is unneeded variable
finalStatusEnum
create after assertion.It contains the same value as statusEnum used in the test.
Visual proofs (screenshots, logs, images)
Environment
Windows 10 Pro
IntelliJ IDEA 2022.3.3 Ultimate
IntelliJ project, JDK 17
Additional context
There were workarounds for Enums already made, but it happens to be the issue in the engine.
The text was updated successfully, but these errors were encountered: