Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
volivan239 opened this issue Oct 19, 2022 · 0 comments · Fixed by #1192
Closed

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

volivan239 opened this issue Oct 19, 2022 · 0 comments · Fixed by #1192
Assignees
Labels
comp-cli Issue related to CLI comp-ui Improvements of plugin UI appearence and functionality ctg-bug Issue is a bug lang-kotlin Issue is related to Kotlin language support

Comments

@volivan239
Copy link
Collaborator

volivan239 commented Oct 19, 2022

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

@volivan239 volivan239 added ctg-bug Issue is a bug comp-ui Improvements of plugin UI appearence and functionality comp-cli Issue related to CLI labels Oct 19, 2022
@volivan239 volivan239 self-assigned this Oct 19, 2022
@korifey korifey moved this to Todo in UTBot Java Oct 19, 2022
@tyuldashev tyuldashev added the lang-kotlin Issue is related to Kotlin language support label Oct 28, 2022
Repository owner moved this from Todo to Done in UTBot Java Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-cli Issue related to CLI comp-ui Improvements of plugin UI appearence and functionality ctg-bug Issue is a bug lang-kotlin Issue is related to Kotlin language support
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants