Skip to content
New issue

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

Array parameters shown as "[I" in region method summary #2585

Open
tyuldashev opened this issue Sep 8, 2023 · 2 comments
Open

Array parameters shown as "[I" in region method summary #2585

tyuldashev opened this issue Sep 8, 2023 · 2 comments
Assignees
Labels
comp-summaries Something related to the method names, code comments and display names generation ctg-bug Issue is a bug spec-regression Regression

Comments

@tyuldashev
Copy link
Collaborator

tyuldashev commented Sep 8, 2023

Description
Region description for method under test improperly displays parameter arrays. For instance when int[] is passed as parameter it becomes [I in region description.

To Reproduce

  1. Install UnitTestBot plugin built from main in IntelliJ IDEA
  2. Generate tests for following code
    int sum(int[] array) {
             return Arrays.stream(array).sum();
    }

Expected behavior
Region description with tests for that method looks like this

///region FUZZER: SUCCESSFUL EXECUTIONS for method sum(int[])

Actual behavior

///region FUZZER: SUCCESSFUL EXECUTIONS for method sum([I)

Environment

IntelliJ IDEA version - 2023.2.1
UTBot Plugin - 2023.9.520

Additional context
In Utbot plugin 2023.3 it looks normal, so I consider this as regression problem.

@tyuldashev tyuldashev added ctg-bug Issue is a bug spec-regression Regression comp-summaries Something related to the method names, code comments and display names generation labels Sep 8, 2023
@tyuldashev
Copy link
Collaborator Author

tyuldashev commented Sep 8, 2023

Another note is about nested enums used as parameter, now it's separated with dollar sign, while previously it was dot. For example generate tests for org.utbot.examples.enums.ClassWithEnum#nullEnumAsParameter and look at separator between ClassWithEnum and StatusEnum at the end of the line.

// now
///region FUZZER: SUCCESSFUL EXECUTIONS for method nullEnumAsParameter(org.utbot.examples.enums.ClassWithEnum$StatusEnum)

// previously
///region SYMBOLIC EXECUTION: SUCCESSFUL EXECUTIONS for method nullEnumAsParameter(org.utbot.examples.enums.ClassWithEnum.StatusEnum)

@IlyaMuravjov
Copy link
Collaborator

Caused by #2459

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-summaries Something related to the method names, code comments and display names generation ctg-bug Issue is a bug spec-regression Regression
Projects
Status: Todo
Development

No branches or pull requests

3 participants