Skip to content

Error in Fuzzing test generation for code producing Function<String, Integer> #1419

Description

@alisevych

Description

Array has more than one element error in Errors report for
Fuzzing test generation for code producing Function<String, Integer>

To Reproduce

  1. Run a project with JDK 11 in IntelliJ Idea
  2. Install one of the latest plugins from main
  3. Set Fuzzing only mode
  4. Add a Java class with the following function:
Function<String, Integer> returnLambda(intbuffer) {
returns -> s.length() + buffer;
}
  1. 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status
Done

Relationships

None yet

Development

No branches or pull requests

Issue actions