Title: Test generation for Optional
Open Graph Title: Test generation for Optional
X Title: Test generation for Optional
Description: Description
Added a check for overridden classes in shouldMock to avoid access to engine classes that are not available in the plugin.
Implemented more accurate speculative marking of final fields as not null to avoid losing paths involving Optional.empty(),
to enable NPE checks for final fields in user code, and to avoid generating non-informative NPE tests for final fields in system
classes.
UtSettings.checkNpeForFinalFields is now set default (false) in AbstractTestCaseGEneratorTest and SummaryTestCaseGeneratorTest.
Fixes #226
Details
There were two issues with test generation for Optional
Open Graph Description: Description Added a check for overridden classes in shouldMock to avoid access to engine classes that are not available in the plugin. Implemented more accurate speculative marking of final fields ...
X Description: Description Added a check for overridden classes in shouldMock to avoid access to engine classes that are not available in the plugin. Implemented more accurate speculative marking of final fields ...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/pull/305
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:a07d90b6-7f08-c1cb-b510-af149afa09d3 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9170:121D90:67EFF7:8AF913:698ED78B |
| html-safe-nonce | 34f8e22d237f9574b96911326216f16b05ee009c5a1e46131c6214d1f069a10e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTcwOjEyMUQ5MDo2N0VGRjc6OEFGOTEzOjY5OEVENzhCIiwidmlzaXRvcl9pZCI6IjcwNTYzMTg4Nzg5NDc2NjE3MDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 29769df8109bf2cafd797604c66f6f971526626cf43e34c64c7dd5e4ef15877c |
| hovercard-subject-tag | pull_request:979695440 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/UnitTestBot/UTBotJava/pull/305/files |
| twitter:image | https://avatars.githubusercontent.com/u/336793?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/336793?s=400&v=4 |
| og:image:alt | Description Added a check for overridden classes in shouldMock to avoid access to engine classes that are not available in the plugin. Implemented more accurate speculative marking of final fields ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width