Skip to content

Autogenerated Kotlin getters/setters shouldn't be tested #911

@volivan239

Description

@volivan239

Description

For each field Kotlin automatically generates getter/setter, there is no sense in testing them. However, they are shown in member list after launching action.

To Reproduce

Declare simple Kotlin class like class B(val x: Int), launch action on it.

Expected behavior

Action is disabled as class has no testable methods.

Actual behavior

Action is enabled, members list has one method getX(), after selecting and launching generate we receive error No methods found.

Visual proofs (screenshots, logs, images)

image

Metadata

Metadata

Assignees

Labels

comp-uiImprovements of plugin UI appearence and functionalityctg-bugIssue is a buglang-kotlinIssue is related to Kotlin language support

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions