Title: Suggest tests for nested classes & static methods inside abstracts #1400 by volivan239 · Pull Request #1406 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Suggest tests for nested classes & static methods inside abstracts #1400 by volivan239 · Pull Request #1406 · UnitTestBot/UTBotJava
X Title: Suggest tests for nested classes & static methods inside abstracts #1400 by volivan239 · Pull Request #1406 · UnitTestBot/UTBotJava
Description: Description Now if we have an abstract class or interface, we propose for testing all methods that can be invoked statically. Note that we also propose all nested classes (because they may contain static methods, although we do not check that they actually do). Fixes #1400 Type of Change Bug fix (non-breaking change which fixes an issue) How Has This Been Tested? Manual Scenario For the class from listing below, g, Inner and Inner2 were proposed for testing, and tests for g and Inner.f were successfully created: abstract class MyAbsC { abstract int h(int x); int f(int x) { return 0; } static int g(int x) { return x; } static class Inner { int f(int x) { return 1; } } class Inner2 { int ff(int x) { return h(x); } } } Checklist (remove irrelevant options): This is the author self-check list 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 Now if we have an abstract class or interface, we propose for testing all methods that can be invoked statically. Note that we also propose all nested classes (because they may contain ...
X Description: Description Now if we have an abstract class or interface, we propose for testing all methods that can be invoked statically. Note that we also propose all nested classes (because they may contain ...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/pull/1406
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:47792dd0-1918-9cc6-8ddf-ceee9499f3cb |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 82EA:256CAC:23B42F:2C852D:69925460 |
| html-safe-nonce | 62a8bc80a41f1418a6c2eaacc8e7132034a84419e911f3a43b01c4ce405e559b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkVBOjI1NkNBQzoyM0I0MkY6MkM4NTJEOjY5OTI1NDYwIiwidmlzaXRvcl9pZCI6Ijc5NTMyMjY2Njc1MjAzNzk4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 33cea00729fb09e16122f1d2b4d868c401c3a7bc647738078bb1e8f5264c10bd |
| hovercard-subject-tag | pull_request:1131140862 |
| 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/1406/files |
| twitter:image | https://avatars.githubusercontent.com/u/65076429?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/65076429?s=400&v=4 |
| og:image:alt | Description Now if we have an abstract class or interface, we propose for testing all methods that can be invoked statically. Note that we also propose all nested classes (because they may contain ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| 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 | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width