Title: Plugin does not discover top-level methods in .kt files · Issue #847 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Plugin does not discover top-level methods in .kt files · Issue #847 · UnitTestBot/UTBotJava
X Title: Plugin does not discover top-level methods in .kt files · Issue #847 · UnitTestBot/UTBotJava
Description: Description If we have a file with top-level functions (some Utils.kt), there will be no available methods for testing found (actually, you can't even call an action). To Reproduce Steps to reproduce the behavior: Run an empty project in...
Open Graph Description: Description If we have a file with top-level functions (some Utils.kt), there will be no available methods for testing found (actually, you can't even call an action). To Reproduce Steps to reprodu...
X Description: Description If we have a file with top-level functions (some Utils.kt), there will be no available methods for testing found (actually, you can't even call an action). To Reproduce Steps to rep...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/issues/847
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Plugin does not discover top-level methods in .kt files","articleBody":"**Description**\r\n\r\nIf we have a file with top-level functions (some Utils.kt), there will be no available methods for testing found (actually, you can't even call an action).\r\n\r\n**To Reproduce**\r\n\r\nSteps to reproduce the behavior:\r\n\r\n1. Run an empty project in IntelliJ Idea\r\n2. Create a kotlin file with top-level function\r\n3. Try to use the plugin to generate tests\r\n\r\n**Expected behavior**\r\n\r\nOpened UTBot dialog\r\n\r\n**Actual behavior**\r\n\r\nNothing happens\r\n\r\n**Visual proofs (screenshots, logs, images)**\r\n\r\n\r\n\r\n**Environment**\r\n\r\nThere is no specific environment. \r\n\r\n**Additional context**\r\n\r\nThere is no additional context.","author":{"url":"https://github.com/CaelmBleidd","@type":"Person","name":"CaelmBleidd"},"datePublished":"2022-09-02T12:44:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/847/UTBotJava/issues/847"}
| 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:cbdd3d2d-aa35-9c0b-df6d-666ac35e882d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E21C:3730D:1AC2DA9:23A843A:698D9409 |
| html-safe-nonce | 9eede5a9cdeed3bd81f9e5e1a3b1330bb396431e23c3d9f5d57e2c5e82242514 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjFDOjM3MzBEOjFBQzJEQTk6MjNBODQzQTo2OThEOTQwOSIsInZpc2l0b3JfaWQiOiIxMjM5ODQ2OTEwMTUyOTE5MTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 35f7c211298f775c0675685d01daa9b7e75ca8664f16d204fe5a38bdde2bdad0 |
| hovercard-subject-tag | issue:1360146056 |
| 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/847/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d56659283e0ec0aa909a465770b6c69866ba45980508e7b9175c4fc2f3765961/UnitTestBot/UTBotJava/issues/847 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d56659283e0ec0aa909a465770b6c69866ba45980508e7b9175c4fc2f3765961/UnitTestBot/UTBotJava/issues/847 |
| og:image:alt | Description If we have a file with top-level functions (some Utils.kt), there will be no available methods for testing found (actually, you can't even call an action). To Reproduce Steps to reprodu... |
| 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 | c0818105fa276287e9369cfdefa0a0fa7953719791ceff9b94d69623c0a4fe8a |
| 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 | cefb6b50cb02e85b21d59b711abca4e67e11cf47 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width