Title: We shouldn't generate tests for synthetic methods of data classes · Issue #1191 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: We shouldn't generate tests for synthetic methods of data classes · Issue #1191 · UnitTestBot/UTBotJava
X Title: We shouldn't generate tests for synthetic methods of data classes · Issue #1191 · UnitTestBot/UTBotJava
Description: 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(va...
Open Graph Description: 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 lau...
X Description: 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...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/1191
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"We shouldn't generate tests for synthetic methods of data classes","articleBody":"**Description**\r\n\r\nKotlin automatically generates some methods for data classes, however, we shouldn't test them unless they are overridden manually.\r\n\r\n**To Reproduce**\r\n\r\nCreate data class with no methods and launch action on it:\r\n\r\n```Kotlin\r\ndata class Datalass(val x: Int, val y: Int)\r\n```\r\n\r\n**Expected behavior**\r\n\r\nAction is disabled\r\n\r\n**Actual behavior**\r\n\r\nDialog appears with synthetic methods being proposed for testing\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\n\u003cimg src=\"https://user-images.githubusercontent.com/65076429/196737867-003e19b4-66c3-4cde-a29d-3401cb439e0a.png\" width=\"60%\"/\u003e\r\n\r\n**Additional context**\r\n\r\nThe issue looks like a \"Kotlin edition\" of #457 ","author":{"url":"https://github.com/volivan239","@type":"Person","name":"volivan239"},"datePublished":"2022-10-19T15:41:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1191/UTBotJava/issues/1191"}
| 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:02acaa68-529b-503b-bd33-42e75aff4548 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABE0:3140D:E0928B:12622B7:698D5B2B |
| html-safe-nonce | e5983ee541071ce916a97fb7a394de16e54e9ae9ad413c824af1061d39a1fb70 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkUwOjMxNDBEOkUwOTI4QjoxMjYyMkI3OjY5OEQ1QjJCIiwidmlzaXRvcl9pZCI6IjM5OTI2NTE0NDc1MjI5MDg5NzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 41656370cfa0f0b162c79d14adab3134681b9e29b6bec5671bf17b6e3fa8c919 |
| hovercard-subject-tag | issue:1415209413 |
| 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/1191/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6bfa49d10c5c7ee7f6bd13073e18d569abef302d20d20d0031395b81cdbb1755/UnitTestBot/UTBotJava/issues/1191 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6bfa49d10c5c7ee7f6bd13073e18d569abef302d20d20d0031395b81cdbb1755/UnitTestBot/UTBotJava/issues/1191 |
| og:image:alt | 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 lau... |
| 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 | c0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a |
| 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 | a95a17cc440c14d4fcddc0641bc1136fa8d908f0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width