Title: AbstractTestCaseGeneratorTest.kt and SummaryTestCaseGeneratorTest.kt contains duplicated methods · Issue #382 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: AbstractTestCaseGeneratorTest.kt and SummaryTestCaseGeneratorTest.kt contains duplicated methods · Issue #382 · UnitTestBot/UTBotJava
X Title: AbstractTestCaseGeneratorTest.kt and SummaryTestCaseGeneratorTest.kt contains duplicated methods · Issue #382 · UnitTestBot/UTBotJava
Description: This class and its inheritor need to be refactored because they have duplicated methods: SummaryTestCaseGeneratorTest has List
Open Graph Description: This class and its inheritor need to be refactored because they have duplicated methods: SummaryTestCaseGeneratorTest has List
X Description: This class and its inheritor need to be refactored because they have duplicated methods: SummaryTestCaseGeneratorTest has List<UtExecution>.checkMatchersWithTextSummary List<UtExecution>...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/382
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AbstractTestCaseGeneratorTest.kt and SummaryTestCaseGeneratorTest.kt contains duplicated methods","articleBody":"This class and its inheritor need to be refactored because they have duplicated methods:\r\n\r\n`SummaryTestCaseGeneratorTest `has \r\n\r\n- `List\u003cUtExecution\u003e.checkMatchersWithTextSummary`\r\n- `List\u003cUtExecution\u003e.checkMatchersWithMethodNames`\r\n- `List\u003cUtExecution\u003e.checkMatchersWithDisplayNames`\r\n\r\nused for tests in utbot.summary.tests module\r\n\r\nand `AbstractTestCaseGeneratorTest `has\r\n\r\n- `List\u003cUtValueExecution\u003c*\u003e\u003e.checkNameMatchers`\r\n- `List\u003cUtValueExecution\u003c*\u003e\u003e.checkDisplayNameMatchers`\r\n- `List\u003cUtValueExecution\u003c*\u003e\u003e.checkCommentsForBasicErrors`\r\n- `List\u003cUtValueExecution\u003c*\u003e\u003e.checkNamesForBasicErrors`\r\n\r\nused in `internalCheck` method\r\n\r\nIt uses some **copy-pasted** logic which should be refactored to the common methods.\r\n\r\nProbably it uses in different places, environments and with different hacks, but checking logic should be common.","author":{"url":"https://github.com/amandelpie","@type":"Person","name":"amandelpie"},"datePublished":"2022-07-04T07:37:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/382/UTBotJava/issues/382"}
| 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:c7b8fe2a-ea1d-2030-230a-e17a47cc1c26 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC20:D8CE5:9C0FA:C5B5A:69910DBA |
| html-safe-nonce | 0e8266ff3cb07adff5a3aef38abc63327a20cd84b3f2aedeebbe7f632dd2d44c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzIwOkQ4Q0U1OjlDMEZBOkM1QjVBOjY5OTEwREJBIiwidmlzaXRvcl9pZCI6IjQ0MjgyMzI0MTQ5MDk3NjMwMDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c47bf9153a91f8c7a33607614b3b745ae4fda5d138a6b4395960d620f4735919 |
| hovercard-subject-tag | issue:1292757042 |
| 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/382/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fa2c5a605da091fb1b52f5317c95f1518c5596cc91662cf1cf0b9224bcc31ff5/UnitTestBot/UTBotJava/issues/382 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fa2c5a605da091fb1b52f5317c95f1518c5596cc91662cf1cf0b9224bcc31ff5/UnitTestBot/UTBotJava/issues/382 |
| og:image:alt | This class and its inheritor need to be refactored because they have duplicated methods: SummaryTestCaseGeneratorTest has List |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | amandelpie |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| 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 | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width