Title: Fuzzing doesn't generate test for package-private parameters · Issue #449 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Fuzzing doesn't generate test for package-private parameters · Issue #449 · UnitTestBot/UTBotJava
X Title: Fuzzing doesn't generate test for package-private parameters · Issue #449 · UnitTestBot/UTBotJava
Description: Description Fuzzing can create objects if they have public constructors (include default implicit one). But package-private constructors can be also called when test runs from the same package (and module). Currently, fuzzing doesn't gen...
Open Graph Description: Description Fuzzing can create objects if they have public constructors (include default implicit one). But package-private constructors can be also called when test runs from the same package (and...
X Description: Description Fuzzing can create objects if they have public constructors (include default implicit one). But package-private constructors can be also called when test runs from the same package (and...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/449
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fuzzing doesn't generate test for package-private parameters","articleBody":"**Description**\r\n\r\nFuzzing can create objects if they have public constructors (include default implicit one). But package-private constructors can be also called when test runs from the same package (and module). Currently, fuzzing doesn't generate any models in this situation.\r\n\r\n**To Reproduce**\r\n\r\nGenerate test for a method `t`:\r\n\r\n```java\r\nclass A {\r\n public int f;\r\n}\r\n\r\npublic class First {\r\n\r\n public void t(A a) {\r\n }\r\n}\r\n```\r\n\r\n**Expected behavior**\r\n\r\nThere's a generated test without reflection\r\n\r\n**Actual behavior**\r\n\r\nCurrently, fuzzing creates a test using reflection.\r\n","author":{"url":"https://github.com/Markoutte","@type":"Person","name":"Markoutte"},"datePublished":"2022-07-07T07:54:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/449/UTBotJava/issues/449"}
| 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:045ee819-4af2-a215-77d5-ce7ad1337dfa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A7C8:1D47:EBA15B:128E6FB:69901342 |
| html-safe-nonce | fd1c38fdae6bde63c9594822b64d27f18436013930ee62e3fc6cb2e5962f5339 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0M4OjFENDc6RUJBMTVCOjEyOEU2RkI6Njk5MDEzNDIiLCJ2aXNpdG9yX2lkIjoiNDk0Mjc2MzU3Mjk3MDE3NjY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a5d63a3840e3e734b569ca37d1287d3c86718b5586ddf0349b8224d655c9c56d |
| hovercard-subject-tag | issue:1296983495 |
| 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/449/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f4ec74cb9b546b23bfaa3c042f2757c4a1cd6f3bc895a04f06a8f7a98da9b32c/UnitTestBot/UTBotJava/issues/449 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f4ec74cb9b546b23bfaa3c042f2757c4a1cd6f3bc895a04f06a8f7a98da9b32c/UnitTestBot/UTBotJava/issues/449 |
| og:image:alt | Description Fuzzing can create objects if they have public constructors (include default implicit one). But package-private constructors can be also called when test runs from the same package (and... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Markoutte |
| 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