Title: Handle not-nullable parameters in Kotlin constructors correctly #1336 by volivan239 · Pull Request #1352 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Handle not-nullable parameters in Kotlin constructors correctly #1336 by volivan239 · Pull Request #1352 · UnitTestBot/UTBotJava
X Title: Handle not-nullable parameters in Kotlin constructors correctly #1336 by volivan239 · Pull Request #1352 · UnitTestBot/UTBotJava
Description: Description If constructor in Kotlin code has not-nullable reference parameter, compiler adds instructions calling kotlin/jvm/internal/Intrinsics.checkNotNullParameter. But in constructor analyzer we accept constructors iff they "contain only statements matching pattern this.a = something where a is an argument of the constructor". Therefore, we need to add exception for calls to the function above. Also, these calls may reorder local variables, so minor changes in indexToField were needed Fixes #1336 Type of Change Bug fix (non-breaking change which fixes an issue) How Has This Been Tested? Manual Scenario Checked on example from #1336 -- works as expected (but only when settings are Fuzzer 100%, engine creates only tests where parameter is null, which do not pass concrete executor -- see #1257) Checklist (remove irrelevant options): This is the author self-check list The change followed the style guidelines of the UTBot project Self-review of the code is passed The change contains enough commentaries, particularly in hard-to-understand areas New documentation is provided or existed one is altered No new warnings New tests have been added All tests pass locally with my changes
Open Graph Description: Description If constructor in Kotlin code has not-nullable reference parameter, compiler adds instructions calling kotlin/jvm/internal/Intrinsics.checkNotNullParameter. But in constructor analyzer ...
X Description: Description If constructor in Kotlin code has not-nullable reference parameter, compiler adds instructions calling kotlin/jvm/internal/Intrinsics.checkNotNullParameter. But in constructor analyzer ...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/pull/1352
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:f289a1b5-da42-8a55-cf09-6cdb8f4a0bf9 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | DE8E:3B7F42:30F8F73:3E89454:699047B7 |
| html-safe-nonce | 12b9d55703e9b90c259b93c79ec5519c7b881676e60736222ec72b3311de049f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERThFOjNCN0Y0MjozMEY4RjczOjNFODk0NTQ6Njk5MDQ3QjciLCJ2aXNpdG9yX2lkIjoiNzA2OTk1NTQ3NzQyMTk2NzI4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6c9dec463e6a563dec465ac80633049b313e5b3cf5cde1186b7c527644793937 |
| hovercard-subject-tag | pull_request:1118794270 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/1352/checks |
| twitter:image | https://avatars.githubusercontent.com/u/65076429?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/65076429?s=400&v=4 |
| og:image:alt | Description If constructor in Kotlin code has not-nullable reference parameter, compiler adds instructions calling kotlin/jvm/internal/Intrinsics.checkNotNullParameter. But in constructor analyzer ... |
| og:site_name | GitHub |
| og:type | object |
| 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 full-width full-width-p-0 |
| 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