Title: Soot artifacts appear in test method display name · Issue #437 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Soot artifacts appear in test method display name · Issue #437 · UnitTestBot/UTBotJava
X Title: Soot artifacts appear in test method display name · Issue #437 · UnitTestBot/UTBotJava
Description: Description Currently, Soot generates the following Jimple for org.utbot.examples.collections.ListWrapperReturnsVoidExample#runForEach: r4 := @this: org.utbot.examples.collections.ListWrapperReturnsVoidExample r2 := @parameter0: java.uti...
Open Graph Description: Description Currently, Soot generates the following Jimple for org.utbot.examples.collections.ListWrapperReturnsVoidExample#runForEach: r4 := @this: org.utbot.examples.collections.ListWrapperReturn...
X Description: Description Currently, Soot generates the following Jimple for org.utbot.examples.collections.ListWrapperReturnsVoidExample#runForEach: r4 := @this: org.utbot.examples.collections.ListWrapperReturn...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/437
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Soot artifacts appear in test method display name","articleBody":"**Description**\r\n\r\nCurrently, Soot generates the following Jimple for org.utbot.examples.collections.ListWrapperReturnsVoidExample#runForEach:\r\n\r\n```java\r\n\r\nr4 := @this: org.utbot.examples.collections.ListWrapperReturnsVoidExample\r\nr2 := @parameter0: java.util.List\r\n$r0 = newarray (int)[1]\r\n$r0[0] = 0\r\n$r3 = staticinvoke \u003corg.utbot.examples.collections.ListWrapperReturnsVoidExample$lambda_runForEach_0__1: java.util.function.Consumer bootstrap$(int[])\u003e($r0)\r\ninterfaceinvoke r2.\u003cjava.util.List: void forEach(java.util.function.Consumer)\u003e($r3)\r\n$i0 = $r0[0]\r\nreturn $i0\r\n\r\n```\r\n\r\nAfter that, when it comes to generation of the test method name (org.utbot.utbot.summary.name.SimpleNameBuilder#collectTags), Soot-generated name \"bootstrap$\" is used as-is and passed to the code generation stage.\r\n\r\n\"bootstrap$\" is clearly a Soot-generated helper code, which should not be used for names seen by user.\r\nWe should avoid it by modifying collectTags method.\r\n\r\n**To Reproduce**\r\n\r\nPlease, fill your step to reproduce here, is the ticket description valid?\r\n\r\n**Expected behavior**\r\n\r\nSoot and another internal artifact should not be part of display name, comments or test name\r\n\r\n**Actual behavior**\r\n\r\nNow it's a problem and depends on our internals\r\n\r\n**Additional context**\r\n\r\nit's ok just filter it, but it will great to propose an approach to avoid another internal stuff\r\n","author":{"url":"https://github.com/amandelpie","@type":"Person","name":"amandelpie"},"datePublished":"2022-07-06T10:23:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/437/UTBotJava/issues/437"}
| 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:d3ccf3a6-a1aa-2c33-b3c5-cc5fba2fc41b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C9C6:3D126:37538C:46FB9D:69909EB9 |
| html-safe-nonce | 72ab48a23f65565aecaba95a4573500854f6d9022729b426f3a0430679df5549 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUM2OjNEMTI2OjM3NTM4Qzo0NkZCOUQ6Njk5MDlFQjkiLCJ2aXNpdG9yX2lkIjoiMjY5MjM3MzA0NjY2OTM4NTQwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a0b3f9ea0b5335d8f15fffaf2571fb5121711dedc0dab14d906bb66b02946c2f |
| hovercard-subject-tag | issue:1295615523 |
| 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/437/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0ee927a85846a28a96ef1bb661168815dd694edc9645035aba16a386d5babbe3/UnitTestBot/UTBotJava/issues/437 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0ee927a85846a28a96ef1bb661168815dd694edc9645035aba16a386d5babbe3/UnitTestBot/UTBotJava/issues/437 |
| og:image:alt | Description Currently, Soot generates the following Jimple for org.utbot.examples.collections.ListWrapperReturnsVoidExample#runForEach: r4 := @this: org.utbot.examples.collections.ListWrapperReturn... |
| 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 | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width