Title: Added pre-condition for non-empty paths in the ExecutionMetric to avoid unclear NPE #267 by amandelpie · Pull Request #567 · UnitTestBot/UTBotJava · GitHub
Open Graph Title: Added pre-condition for non-empty paths in the ExecutionMetric to avoid unclear NPE #267 by amandelpie · Pull Request #567 · UnitTestBot/UTBotJava
X Title: Added pre-condition for non-empty paths in the ExecutionMetric to avoid unclear NPE #267 by amandelpie · Pull Request #567 · UnitTestBot/UTBotJava
Description: Description The ExecutionMetric works with the non-empty paths, but could obtain it sometimes. I've added pre-condition checks and throw a few exceptions to handle it later and with the correct message. Fixes #267 Type of Change Minor bug fix (non-breaking small changes) How Has This Been Tested? Automated Testing Added a new test to reproduce the condition with empty paths ExecutionMetricTest.computeWithTwoEmptySteps Checklist (remove irrelevant options): 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 The ExecutionMetric works with the non-empty paths, but could obtain it sometimes. I've added pre-condition checks and throw a few exceptions to handle it later and with the correct...
X Description: Description The ExecutionMetric works with the non-empty paths, but could obtain it sometimes. I've added pre-condition checks and throw a few exceptions to handle it later and with the cor...
Opengraph URL: https://github.com/UnitTestBot/UTBotJava/pull/567
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:492914ab-2dc7-c0c3-142b-4cec1125a288 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DBA4:28B211:2D38A10:39B5C81:6991337D |
| html-safe-nonce | 8bc786e7a9e31cc4055512dcb9db2d9b11b7f1fe836b579f727669035971a7b3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkE0OjI4QjIxMToyRDM4QTEwOjM5QjVDODE6Njk5MTMzN0QiLCJ2aXNpdG9yX2lkIjoiMTUyMDg2MjA2NzY2NzIzOTY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9116e0b4aa98a7da0445078bb4ffbe4512755a274f42ecd76675c4d234749c40 |
| hovercard-subject-tag | pull_request:1004111769 |
| 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/567/files |
| twitter:image | https://avatars.githubusercontent.com/u/105506115?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/105506115?s=400&v=4 |
| og:image:alt | Description The ExecutionMetric works with the non-empty paths, but could obtain it sometimes. I've added pre-condition checks and throw a few exceptions to handle it later and with the correct... |
| 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