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

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

Closed
volivan239 opened this issue Sep 13, 2022 · 0 comments · Fixed by #1003 or #1026
Closed

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

volivan239 opened this issue Sep 13, 2022 · 0 comments · Fixed by #1003 or #1026
Assignees
Labels
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

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

@volivan239 volivan239 added ctg-bug Issue is a bug comp-ui Improvements of plugin UI appearence and functionality labels Sep 13, 2022
@volivan239 volivan239 self-assigned this Sep 13, 2022
@korifey korifey moved this to Todo in UTBot Java Sep 13, 2022
Repository owner moved this from Todo to Done in UTBot Java Sep 23, 2022
@alisevych alisevych added the lang-kotlin Issue is related to Kotlin language support label Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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
2 participants