Title: Generate test by fuzzing for methods with no parameters · Issue #511 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Generate test by fuzzing for methods with no parameters · Issue #511 · UnitTestBot/UTBotJava
X Title: Generate test by fuzzing for methods with no parameters · Issue #511 · UnitTestBot/UTBotJava
Description: Description Fuzzing should generate tests for methods without parameters. Usually, these methods have logic using internal object fields. For example: public class NestedClasses { public int field; public boolean testObject() { if (field...
Open Graph Description: Description Fuzzing should generate tests for methods without parameters. Usually, these methods have logic using internal object fields. For example: public class NestedClasses { public int field;...
X Description: Description Fuzzing should generate tests for methods without parameters. Usually, these methods have logic using internal object fields. For example: public class NestedClasses { public int field;...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/511
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Generate test by fuzzing for methods with no parameters","articleBody":"**Description**\r\n\r\nFuzzing should generate tests for methods without parameters. Usually, these methods have logic using internal object fields. For example:\r\n\r\n```java\r\npublic class NestedClasses {\r\n public int field;\r\n\r\n public boolean testObject() {\r\n if (field \u003e 10) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n}\r\n```\r\n\r\n**Expected behavior**\r\n\r\nFuzzing should provide several test with values for a field (for example, 10 and 11).\r\n\r\n**Environment**\r\n\r\nThis problem is bound to the fact that fuzzer uses simple creation of _this object_. For example, fuzzer uses reflection to create _this instance_ when method's class doesn't have public empty constructor.\r\n\r\n**Potential alternatives**\r\n\r\nThere's no alternatives\r\n","author":{"url":"https://github.com/Markoutte","@type":"Person","name":"Markoutte"},"datePublished":"2022-07-13T08:10:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/511/UTBotJava/issues/511"}
| 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:136fab64-9ba7-32b3-ce98-b8772f271dc4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C93C:23DDAC:5C1F47:66C336:698F9E8B |
| html-safe-nonce | c56efd15f5ad816b09ccdf53dc6c7118a5a4dbda161a602c9af0c4b152b651ba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTNDOjIzRERBQzo1QzFGNDc6NjZDMzM2OjY5OEY5RThCIiwidmlzaXRvcl9pZCI6IjgzMTQ4MDg1NjIyNzEzNjI2OTkiLCJyZWdpb25fZWRnZSI6InNlYSIsInJlZ2lvbl9yZW5kZXIiOiJzZWEifQ== |
| visitor-hmac | 69d03b01bec29e27aa605d1c3deee0d94a0d62b42684b34a673b8d6df157ea84 |
| hovercard-subject-tag | issue:1303068025 |
| 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/511/issue_layout |
| twitter:image | https://opengraph.githubassets.com/368716603ee5f029ab80d97e1ab76aa1fe5c6c8cf42c5ab249df0a10ad2315ce/UnitTestBot/UTBotJava/issues/511 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/368716603ee5f029ab80d97e1ab76aa1fe5c6c8cf42c5ab249df0a10ad2315ce/UnitTestBot/UTBotJava/issues/511 |
| og:image:alt | Description Fuzzing should generate tests for methods without parameters. Usually, these methods have logic using internal object fields. For example: public class NestedClasses { public int field;... |
| 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 | 5f47eb8d0aaafbfcb6a8220a40bd81431acf688857c575e6489670c394cfa36f |
| 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 | 17aba3d160d69b8c2b37695ebd174d8101af8896 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width