Title: Error in Fuzzing test generation for code producing `Function
Open Graph Title: Error in Fuzzing test generation for code producing `Function
X Title: Error in Fuzzing test generation for code producing `Function
Description: Description Array has more than one element error in Errors report for Fuzzing test generation for code producing Function
Open Graph Description: Description Array has more than one element error in Errors report for Fuzzing test generation for code producing Function
X Description: Description Array has more than one element error in Errors report for Fuzzing test generation for code producing Function<String, Integer> To Reproduce Run a project with JDK 11 in IntelliJ ...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/1419
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error in Fuzzing test generation for code producing `Function\u003cString, Integer\u003e`","articleBody":"**Description**\r\n\r\n`Array has more than one element` error in Errors report for \r\nFuzzing test generation for code producing `Function\u003cString, Integer\u003e`\r\n\r\n**To Reproduce**\r\n\r\n1. Run a project with JDK 11 in IntelliJ Idea \r\n2. Install [one of the latest plugins from main](https://github.com/UnitTestBot/UTBotJava/actions/runs/3538142501)\r\n3. Set Fuzzing only mode\r\n4. Add a Java class with the following function:\r\n\r\n```java\r\n Function\u003cString, Integer\u003e returnLambda(int buffer) {\r\n return s -\u003e s.length() + buffer;\r\n }\r\n\r\n```\r\n\r\n5. Generate tests for it\r\n\r\n**Expected behavior**\r\n\r\nTests are supposed to be generated.\r\n\r\n**Actual behavior**\r\n\r\nAn error test is generated with information about errors in the concrete executor:\r\n`Array has more than one element`\r\nNo exceptions are present in concrete executor log , RD engine logs, idea.log\r\nOnly one about failed to save test report.\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\n~~~java\r\nimport java.util.function.Function;\r\n\r\npublic final class LambdaTest {\r\n ///region Test suites for executable org.utbot.examples.lambda.Lambda.returnLambda\r\n\r\n ///region Errors report for returnLambda\r\n\r\n public void testReturnLambda_errors() {\r\n // Couldn't generate some tests. List of errors:\r\n // \r\n // 1 occurrences of:\r\n // Array has more than one element.\r\n\r\n }\r\n ///endregion\r\n\r\n ///endregion\r\n}\r\n~~~\r\n\r\n**Environment**\r\n\r\nWindows 10 Pro\r\nIntelliJ IDEA 2022.2.3\r\nGradle , JDK 11\r\n\r\n**Additional context**\r\n\r\nIF Symbolic execution is turned on - a successful test is generated besides the error on.\r\n","author":{"url":"https://github.com/alisevych","@type":"Person","name":"alisevych"},"datePublished":"2022-11-24T14:50:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1419/UTBotJava/issues/1419"}
| 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:87330777-dea5-75a6-8eb7-6299b2fb6582 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B160:BF1F6:C25EC4:F66614:69901519 |
| html-safe-nonce | 65b4a673676aad8d4207e61b9140fd49fcd463d69d44fae14335f24cb571cb64 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTYwOkJGMUY2OkMyNUVDNDpGNjY2MTQ6Njk5MDE1MTkiLCJ2aXNpdG9yX2lkIjoiNzQ4MTEzMzc0MjAwNzc4NDcyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a40945f75e6e58f78c0b9cd67139eb069d52c52ae072682b65004e79c915346a |
| hovercard-subject-tag | issue:1463459687 |
| 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/1419/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f2242ae64a032081e8e65da0b50b200967bc2cfb8329c33f4ea1ae2d42fb653a/UnitTestBot/UTBotJava/issues/1419 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f2242ae64a032081e8e65da0b50b200967bc2cfb8329c33f4ea1ae2d42fb653a/UnitTestBot/UTBotJava/issues/1419 |
| og:image:alt | Description Array has more than one element error in Errors report for Fuzzing test generation for code producing Function |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | alisevych |
| 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