Title: Incorrect region in SARIF report · Issue #460 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Incorrect region in SARIF report · Issue #460 · UnitTestBot/UTBotJava
X Title: Incorrect region in SARIF report · Issue #460 · UnitTestBot/UTBotJava
Description: Description Sometimes we have such region in SARIF report: "region" : { "startLine" : 1, "startColumn" : 1 } But the first line of the source code contains the package name or class name. So there can't be an unchecked exception there. T...
Open Graph Description: Description Sometimes we have such region in SARIF report: "region" : { "startLine" : 1, "startColumn" : 1 } But the first line of the source code contains the package name or class name. So there ...
X Description: Description Sometimes we have such region in SARIF report: "region" : { "startLine" : 1, "startColumn" : 1 } But the first line of the source code contains the package...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/460
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect region in SARIF report","articleBody":"**Description**\r\n\r\nSometimes we have such region in SARIF report:\r\n```JSON\r\n\"region\" : {\r\n \"startLine\" : 1,\r\n \"startColumn\" : 1\r\n}\r\n```\r\n\r\nBut the first line of the source code contains the package name or class name. So there can't be an unchecked exception there.\r\n\r\n**To Reproduce**\r\n\r\nSteps to reproduce the behavior:\r\n\r\n1. Run test generation using IDEA plugin:\r\n```Java\r\npublic class Util {\r\n public static int multiply(int x, int y) {\r\n return Math.multiplyExact(x, y);\r\n }\r\n}\r\n```\r\n2. Open generated SARIF report\r\n3. Find the incorrect region\r\n\r\n**Expected behavior**\r\n\r\nThe SARIF report contains only correct regions.\r\n\r\n**Visual proofs**\r\n\r\n\r\n","author":{"url":"https://github.com/mmvpm","@type":"Person","name":"mmvpm"},"datePublished":"2022-07-08T09:11:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/460/UTBotJava/issues/460"}
| 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:39f8541e-232f-670e-0835-b84f3192f766 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DBE4:1E64:23B905F:2D8285D:69904329 |
| html-safe-nonce | b18d1edc7606f8754b54e3f803d52f472c6473a7c5eebeb3ac7618f5ece42ff3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkU0OjFFNjQ6MjNCOTA1RjoyRDgyODVEOjY5OTA0MzI5IiwidmlzaXRvcl9pZCI6IjQ4MTI1NzkyNDk5OTgyODM1NjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 458475096540d0e2b7a9e5e536b33236f6ddab6172d6a9d3bcb6efe1477c33e3 |
| hovercard-subject-tag | issue:1298723183 |
| 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/460/issue_layout |
| twitter:image | https://opengraph.githubassets.com/11f0b3c2a3ffbab8e62c83ec2f8c7d9f0835a92b3cee0c47cd8781166ce08314/UnitTestBot/UTBotJava/issues/460 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/11f0b3c2a3ffbab8e62c83ec2f8c7d9f0835a92b3cee0c47cd8781166ce08314/UnitTestBot/UTBotJava/issues/460 |
| og:image:alt | Description Sometimes we have such region in SARIF report: "region" : { "startLine" : 1, "startColumn" : 1 } But the first line of the source code contains the package name or class name. So there ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mmvpm |
| 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