Skip to content

List of classes, displayed on plugin UI, may miss some items #2097

Closed
@EgorkaKulikov

Description

@EgorkaKulikov

Description

The following code in GenerateTestsDialogWindow is incorrect:

val items = if (model.extractMembersFromSrcClasses) {
            srcClasses.flatMap { it.extractFirstLevelMembers(false) }
        } else {
            srcClasses.map { MemberInfo(it) }
        }.toSortedSet { o1, o2 -> o1.displayName.compareTo(o2.displayName, true) }

To Reproduce

Let us generate tests for package p with internal packages p1 and p2.
Both internal packages contain class A.
Only one of them will be shown in selection table.

Expected behavior

Classes p1.A and p2.A are shown in selection table.

Actual behavior

Only one of this classes is selected to table.

Metadata

Metadata

Labels

comp-uiImprovements of plugin UI appearence and functionalityctg-bugIssue is a bug

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions