Title: Mock label is assigned to null values · Issue #1520 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Mock label is assigned to null values · Issue #1520 · UnitTestBot/UTBotJava
X Title: Mock label is assigned to null values · Issue #1520 · UnitTestBot/UTBotJava
Description: Description We have an array that contains information about whether some object is mocked or not with symbolic addresses as its indices. When we create an object, we assign a mark corresponding provided mock information. Because of an e...
Open Graph Description: Description We have an array that contains information about whether some object is mocked or not with symbolic addresses as its indices. When we create an object, we assign a mark corresponding pr...
X Description: Description We have an array that contains information about whether some object is mocked or not with symbolic addresses as its indices. When we create an object, we assign a mark corresponding pr...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/1520
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Mock label is assigned to null values","articleBody":"**Description**\r\n\r\nWe have an array that contains information about whether some object is mocked or not with symbolic addresses as its indices. When we create an object, we assign a mark corresponding provided mock information. Because of an error, we do it without the condition that they should not be taken into account if the object we create is null, and it cases UNSAT verdict.\r\n\r\n**To Reproduce**\r\n\r\nSteps to reproduce the behavior:\r\n\r\n1. Open a test project with utbot-api dependency\r\n2. Copy there a code from `visual proof` section below\r\n3. Run generation with `Other packages` mock strategy\r\n\r\n**Expected behavior**\r\n\r\nOne generated test.\r\n\r\n**Actual behavior**\r\n\r\nNo generated tests.\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\n```java\r\npublic int mocksForNullOfDifferentTypes(Integer intValue, Random random) {\r\n UtMock.assume(intValue == null);\r\n UtMock.assume(random == null);\r\n\r\n return 0;\r\n}\r\n```\r\n\r\n**Environment**\r\nMocks are enabled, any Junit is ok, mock strategy `all other classes` of `from other packages`\r\n\r\n**Additional context**\r\n\r\nThere is no additional context\r\n","author":{"url":"https://github.com/CaelmBleidd","@type":"Person","name":"CaelmBleidd"},"datePublished":"2022-12-15T05:33:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1520/UTBotJava/issues/1520"}
| 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:3d79f207-994a-4af5-b1ff-4996fe57f8ff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D84A:1AD31F:648C6C:80336C:69905BFB |
| html-safe-nonce | 172f98e324a38807b83d110a5db6e6cfa739c537e4f30ea5273db3b38231806b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODRBOjFBRDMxRjo2NDhDNkM6ODAzMzZDOjY5OTA1QkZCIiwidmlzaXRvcl9pZCI6IjM1MDcyNTIzMTU3MTEzMTM4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 132719f829bb6f125772a8dc648f77ca3a87e2662c16bfcc44d60e34ed37acd8 |
| hovercard-subject-tag | issue:1497817870 |
| 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/1520/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1917b264ca95bac08abc65b3e9c155c7d49d389c676e465d7adb54b005202e1a/UnitTestBot/UTBotJava/issues/1520 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1917b264ca95bac08abc65b3e9c155c7d49d389c676e465d7adb54b005202e1a/UnitTestBot/UTBotJava/issues/1520 |
| og:image:alt | Description We have an array that contains information about whether some object is mocked or not with symbolic addresses as its indices. When we create an object, we assign a mark corresponding pr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | CaelmBleidd |
| 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 |
| 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