Skip to content

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

Open
@tyuldashev

Description

@tyuldashev

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.

Metadata

Metadata

Assignees

Labels

comp-summariesSomething related to the method names, code comments and display names generationctg-bugIssue is a bugspec-regressionRegression

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions