JetBrains-Research / TestSpark

TestSpark - a plugin for generating unit tests. TestSpark natively integrates different AI-based test generation tools and techniques in the IDE. Started by SERG TU Delft. Currently under implementation by JetBrains Research (ICTL) for research purposes.
MIT License
35 stars 9 forks source link

Index out of bound for buttons assignment #245

Closed Vladislav0Art closed 1 month ago

Vladislav0Art commented 1 month ago

Describe the bug PR #244 introduced a bug where the buttons assigned via index may exceed the length of the buttons array.

To Reproduce Steps to reproduce the behavior:

  1. Open the test generation modal window, placing a cursor in a position so that either no method or no class surrounds it.
  2. See the index-out-of-bound error.

Expected behavior No error should be produced.