UTBotJava icon indicating copy to clipboard operation
UTBotJava copied to clipboard

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

Open alisevych opened this issue 3 years ago • 0 comments

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

alisevych avatar Mar 17 '23 14:03 alisevych