Skip to content

Which @utbot.triggersRecursion code reference is correct for Sort.mergeSort() #1975

Open
@alisevych

Description

@alisevych

Description

@utbot.triggersRecursion has code reference for Sort.mergeSort()
Please clarify which code should be addressed?

To Reproduce

  1. Run the 'utbot' project in IntelliJ Idea 2022.2 Ultimate
  2. Install plugin built from unit-test-bot/rc2102023 branch : this one was used
  3. Use plugin to generate tests for Sort.mergeSort()
  4. Open the generated test, check test methods with tag @utbot.triggersRecursion

Actual behavior

It references to

     * @utbot.triggersRecursion mergeSort, where the test return from: {@code return array;}

Question details

The method is called recursively from the following lines:

        leftArray = mergeSort(leftArray);
        rightArray = mergeSort(rightArray);

Please clarify what line should be addressed in this tag?

Probably this information can be added to https://github.com/UnitTestBot/UTBotJava/blob/main/docs/summaries/CustomJavadocTags.md

Metadata

Metadata

Assignees

Labels

comp-summariesSomething related to the method names, code comments and display names generationctg-questionFurther information is requested

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions