Skip to content

We shouldn't generate tests for synthetic methods of data classes #1191

Closed
@volivan239

Description

@volivan239

Description

Kotlin automatically generates some methods for data classes, however, we shouldn't test them unless they are overridden manually.

To Reproduce

Create data class with no methods and launch action on it:

data class Datalass(val x: Int, val y: Int)

Expected behavior

Action is disabled

Actual behavior

Dialog appears with synthetic methods being proposed for testing

Visual proofs (screenshots, logs, images)

Additional context

The issue looks like a "Kotlin edition" of #457

Metadata

Metadata

Assignees

Labels

comp-cliIssue related to CLIcomp-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