Title: Empty region names and missing javadoc for `Sort.arrayCopy` · Issue #1204 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Empty region names and missing javadoc for `Sort.arrayCopy` · Issue #1204 · UnitTestBot/UTBotJava
X Title: Empty region names and missing javadoc for `Sort.arrayCopy` · Issue #1204 · UnitTestBot/UTBotJava
Description: Description To Reproduce public int[] arrayCopy() { int[] fst = {1, 2, 3}; int[] snd = {4, 5, 6}; System.arraycopy(fst, 0, snd, 0, 3); return snd; } Steps to reproduce the behavior: Open algorithms/Sort.java sample from UTBot project Or ...
Open Graph Description: Description To Reproduce public int[] arrayCopy() { int[] fst = {1, 2, 3}; int[] snd = {4, 5, 6}; System.arraycopy(fst, 0, snd, 0, 3); return snd; } Steps to reproduce the behavior: Open algorithms...
X Description: Description To Reproduce public int[] arrayCopy() { int[] fst = {1, 2, 3}; int[] snd = {4, 5, 6}; System.arraycopy(fst, 0, snd, 0, 3); return snd; } Steps to reproduce the behavior: Open algorithms...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/1204
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Empty region names and missing javadoc for `Sort.arrayCopy`","articleBody":"**Description**\r\n\r\n\r\n\r\n**To Reproduce**\r\n\r\n```java\r\n public int[] arrayCopy() {\r\n int[] fst = {1, 2, 3};\r\n int[] snd = {4, 5, 6};\r\n\r\n System.arraycopy(fst, 0, snd, 0, 3);\r\n return snd;\r\n }\r\n```\r\n\r\nSteps to reproduce the behavior:\r\n1. Open [`algorithms/Sort.java`](https://github.com/UnitTestBot/UTBotJava/blob/main/utbot-sample/src/main/java/org/utbot/examples/algorithms/Sort.java) sample from UTBot project \r\n2. Or use code sample from above.\r\n3. In plugin settings set generation method to 95% Symbolic\r\n4. Use plugin to generate tests\r\n5. Open the generated test\r\n\r\n**Expected behavior**\r\n\r\nEvery test is placed in region with name and has proper java doc description\r\n\r\n**Actual behavior**\r\n\r\nQuite many regions have no names and some tests have no javadocs\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\nHere is one of generated test:\r\n```java\r\npublic class SortTest {\r\n ///region Test suites for executable org.example.Sort.arrayCopy\r\n\r\n ///region\r\n\r\n @Test\r\n public void testArrayCopy1() {\r\n Sort sort = new Sort();\r\n\r\n int[] actual = sort.arrayCopy();\r\n\r\n int[] expected = {1, 2, 3};\r\n assertArrayEquals(expected, actual);\r\n }\r\n\r\n...\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/tyuldashev","@type":"Person","name":"tyuldashev"},"datePublished":"2022-10-20T15:05:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/1204/UTBotJava/issues/1204"}
| 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:04f18e6a-fe4c-170d-89eb-097d58507e12 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D5C4:1132B1:880AD7:B0D65B:698E76EC |
| html-safe-nonce | da5c370ec24a35301085ee91001107d4fc55a7a5ea081fd861f0a0e547a58b93 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUM0OjExMzJCMTo4ODBBRDc6QjBENjVCOjY5OEU3NkVDIiwidmlzaXRvcl9pZCI6IjgwNzYyNzYzMTc4NTM0ODA2ODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d8de9df73cb085f8a67940f190102a8fce2e115812d692f862c343a33e24dcd1 |
| hovercard-subject-tag | issue:1416794796 |
| 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/1204/issue_layout |
| twitter:image | https://opengraph.githubassets.com/120d61d75557861a88477656c14f77f5ce4b8ddb19a1b6b00030b35e485d9b33/UnitTestBot/UTBotJava/issues/1204 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/120d61d75557861a88477656c14f77f5ce4b8ddb19a1b6b00030b35e485d9b33/UnitTestBot/UTBotJava/issues/1204 |
| og:image:alt | Description To Reproduce public int[] arrayCopy() { int[] fst = {1, 2, 3}; int[] snd = {4, 5, 6}; System.arraycopy(fst, 0, snd, 0, 3); return snd; } Steps to reproduce the behavior: Open algorithms... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tyuldashev |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| 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 | f7a12861f7011eecb14bcc4388a767d829a52dfc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width