-
Notifications
You must be signed in to change notification settings - Fork 45
Closed
Labels
ctg-bugIssue is a bugIssue is a bugpriority-top-focusTop priority chosen by dev teamTop priority chosen by dev team
Milestone
Description
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(int buffer) {
return s -> 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)
import java.util.function.Function;
public final class LambdaTest {
///region Test suites for executable org.utbot.examples.lambda.Lambda.returnLambda
///region Errors report for returnLambda
public void testReturnLambda_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.
Metadata
Metadata
Assignees
Labels
ctg-bugIssue is a bugIssue is a bugpriority-top-focusTop priority chosen by dev teamTop priority chosen by dev team
Type
Projects
Status
Done