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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:d370ffe6-f39d-4f57-54bf-4a3fdc48e5bd |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | C168:1D7E:1B9080C:25D269C:698DD22F |
| html-safe-nonce | 2711e474f796cb98f3705bb02c009381ada32cf766bc531f02ae228ca98c4c2c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTY4OjFEN0U6MUI5MDgwQzoyNUQyNjlDOjY5OEREMjJGIiwidmlzaXRvcl9pZCI6IjgyMTk0NjY1MDMxMTc3MjIxNTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f1bedf372350be05c55dd723c951cb795237ccab3e133b4642939fbf3e15dea1 |
| hovercard-subject-tag | pull_request:1098608237 |
| 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/1228/checks |
| 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 | d9c5a945db9d79f5476dbe75d3700f24739ef28ab02037163bdeac4050cd4ded |
| 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 | 1e3d09effb9f6299d5990409f03a0dfa8eca8595 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width