Skip to content

Empty region names and missing javadoc for Sort.arrayCopy #1204

Closed
@tyuldashev

Description

@tyuldashev

Description

To Reproduce

    public int[] arrayCopy() {
        int[] fst = {1, 2, 3};
        int[] snd = {4, 5, 6};

        System.arraycopy(fst, 0, snd, 0, 3);
        return snd;
    }

Steps to reproduce the behavior:

  1. Open algorithms/Sort.java sample from UTBot project
  2. Or use code sample from above.
  3. In plugin settings set generation method to 95% Symbolic
  4. Use plugin to generate tests
  5. Open the generated test

Expected behavior

Every test is placed in region with name and has proper java doc description

Actual behavior

Quite many regions have no names and some tests have no javadocs

Visual proofs (screenshots, logs, images)

Here is one of generated test:

public class SortTest {
    ///region Test suites for executable org.example.Sort.arrayCopy

    ///region

    @Test
    public void testArrayCopy1() {
        Sort sort = new Sort();

        int[] actual = sort.arrayCopy();

        int[] expected = {1, 2, 3};
        assertArrayEquals(expected, actual);
    }

...

Metadata

Metadata

Assignees

Labels

comp-summariesSomething related to the method names, code comments and display names generationctg-bugIssue is a bugstatus-verifiedBug fix is verified

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions