Title: Map doesn't work without concrete by CaelmBleidd · Pull Request #1228 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Map doesn't work without concrete by CaelmBleidd · Pull Request #1228 · UnitTestBot/UTBotJava
X Title: Map doesn't work without concrete by CaelmBleidd · Pull Request #1228 · UnitTestBot/UTBotJava
Description: Description At some moment we discovered that maps do not work as they suppose: sometimes concrete could fix it (for example, when a map was not a parameter), sometimes could not. This request fixes two particular problems: error in type indices for select operation and possible aliasing between nested arrays. A problem with aliasing could be seen while debugging org.utbot.examples.collections.Maps#putInMapFromParameters. Without this fix it doesn't work for an empty map: touched and values might have the same address, and if we make two put operations, the second one will cause a problem -- memory update for keys will rewrite values as well, and we'll have wrong result values. With one put or with a map that was created during the execution everything worked fine (after the fix with types) Fixes #436 Type of Change Bug fix (non-breaking change which fixes an issue) How Has This Been Tested? Automated Testing org.utbot.examples.collections.Maps#createMapWithEnum org.utbot.examples.collections.Maps#createMapWithString org.utbot.examples.collections.Maps#containsKeyAndPuts org.utbot.examples.collections.Maps#putInMapFromParameters org.utbot.examples.collections.Maps#mapPutAndGet Manual Scenario Didn't check manually. Checklist: 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 At some moment we discovered that maps do not work as they suppose: sometimes concrete could fix it (for example, when a map was not a parameter), sometimes could not. This request fixe...
X Description: Description At some moment we discovered that maps do not work as they suppose: sometimes concrete could fix it (for example, when a map was not a parameter), sometimes could not. This request fixe...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/pull/1228
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:41dc6e1e-e245-a123-528c-9817e3a59dbe |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8CA0:A76E:305C4:3ED47:698E57B4 |
| html-safe-nonce | 895fa0886d09ca4d89ecac8ff573cecfa680b9227f8aace62fddb9e498452193 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0EwOkE3NkU6MzA1QzQ6M0VENDc6Njk4RTU3QjQiLCJ2aXNpdG9yX2lkIjoiMzgyOTQyNzAwNTA1NDQwODYyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 877b57934dfe3db38032aeed8435c136c183480309bd8354347de189452ed284 |
| hovercard-subject-tag | pull_request:1098608237 |
| 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/1228/files |
| twitter:image | https://avatars.githubusercontent.com/u/31047452?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/31047452?s=400&v=4 |
| og:image:alt | Description At some moment we discovered that maps do not work as they suppose: sometimes concrete could fix it (for example, when a map was not a parameter), sometimes could not. This request fixe... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0e08b85f0035d49bc4c22868f70a4d30fb8c2a777936895c37e78df095242ddc |
| 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 | 9416d07f3607b074b276ccc81546278f89608a08 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width