Description
Array has more than one element error in Errors report for
Fuzzing test generation for code producing Function<String, Integer>
To Reproduce
- Run a project with JDK 11 in IntelliJ Idea
- Install one of the latest plugins from main
- Set Fuzzing only mode
- Add a Java class with the following function:
Function<String, Integer> returnLambda(intbuffer) {
returns -> s.length() + buffer;
}- Generate tests for it
Expected behavior
Tests are supposed to be generated.
Actual behavior
An error test is generated with information about errors in the concrete executor:
Array has more than one element
No exceptions are present in concrete executor log , RD engine logs, idea.log
Only one about failed to save test report.
Visual proofs (screenshots, logs, images)
importjava.util.function.Function;
publicfinalclassLambdaTest {
///region Test suites for executable org.utbot.examples.lambda.Lambda.returnLambda///region Errors report for returnLambdapublicvoidtestReturnLambda_errors() {
// Couldn't generate some tests. List of errors:// // 1 occurrences of:// Array has more than one element.
}
///endregion///endregion
}Environment
Windows 10 Pro
IntelliJ IDEA 2022.2.3
Gradle , JDK 11
Additional context
IF Symbolic execution is turned on - a successful test is generated besides the error on.
Description
Array has more than one elementerror in Errors report forFuzzing test generation for code producing
Function<String, Integer>To Reproduce
Expected behavior
Tests are supposed to be generated.
Actual behavior
An error test is generated with information about errors in the concrete executor:
Array has more than one elementNo exceptions are present in concrete executor log , RD engine logs, idea.log
Only one about failed to save test report.
Visual proofs (screenshots, logs, images)
Environment
Windows 10 Pro
IntelliJ IDEA 2022.2.3
Gradle , JDK 11
Additional context
IF Symbolic execution is turned on - a successful test is generated besides the error on.