Title: Autogenerated Kotlin getters/setters shouldn't be tested · Issue #911 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Autogenerated Kotlin getters/setters shouldn't be tested · Issue #911 · UnitTestBot/UTBotJava
X Title: Autogenerated Kotlin getters/setters shouldn't be tested · Issue #911 · UnitTestBot/UTBotJava
Description: 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),...
Open Graph Description: 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 simpl...
X Description: 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 simpl...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/911
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Autogenerated Kotlin getters/setters shouldn't be tested","articleBody":"**Description**\r\n\r\nFor each field Kotlin automatically generates getter/setter, there is no sense in testing them. However, they are shown in member list after launching action.\r\n\r\n**To Reproduce**\r\n\r\nDeclare simple Kotlin class like `class B(val x: Int)`, launch action on it.\r\n\r\n**Expected behavior**\r\n\r\nAction is disabled as class has no testable methods.\r\n\r\n**Actual behavior**\r\n\r\nAction is enabled, members list has one method `getX()`, after selecting and launching generate we receive error `No methods found`.\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\n\u003cimg width=\"461\" alt=\"image\" src=\"https://user-images.githubusercontent.com/65076429/189856398-824a7a4d-21dc-4829-bc8b-c9dba83735c8.png\"\u003e\r\n","author":{"url":"https://github.com/volivan239","@type":"Person","name":"volivan239"},"datePublished":"2022-09-13T08:48:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/911/UTBotJava/issues/911"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ea456814-a7fc-9aec-d841-e90c95d06bf2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8A4:356B30:35ADCC:4A363A:698E0C2B |
| html-safe-nonce | 0d3f22c6b1742f477325d7babc00046312278cce2288d67e589ab32af42d9ad8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOEE0OjM1NkIzMDozNUFEQ0M6NEEzNjNBOjY5OEUwQzJCIiwidmlzaXRvcl9pZCI6IjUwNjk2NjMzOTA5MDI2NTE5NDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fa6141ffa963bd3731440244263a62ef70330c515c3b654eaab10b3683c278a0 |
| hovercard-subject-tag | issue:1371088387 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/UnitTestBot/UTBotJava/911/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8af51d0bc12a857fa1a5e0ceb1f91a6bc2e46c2638ff49d814e41e179172b50e/UnitTestBot/UTBotJava/issues/911 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8af51d0bc12a857fa1a5e0ceb1f91a6bc2e46c2638ff49d814e41e179172b50e/UnitTestBot/UTBotJava/issues/911 |
| og:image:alt | 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 simpl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | volivan239 |
| hostname | github.com |
| expected-hostname | github.com |
| None | fdf74c91c9ac187cc5cd7b14d4af2d6ef3e18136d002f5d36253f8538e97ee4c |
| turbo-cache-control | no-preview |
| go-import | github.com/UnitTestBot/UTBotJava git https://github.com/UnitTestBot/UTBotJava.git |
| octolytics-dimension-user_id | 87413538 |
| octolytics-dimension-user_login | UnitTestBot |
| octolytics-dimension-repository_id | 480810501 |
| octolytics-dimension-repository_nwo | UnitTestBot/UTBotJava |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 480810501 |
| octolytics-dimension-repository_network_root_nwo | UnitTestBot/UTBotJava |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1a5a3e7bbfb3486980e340c242368684156fba87 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width