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

Remove Java Stream API use in CoverageVisualisationService #246

Closed AbdullinAM closed 4 weeks ago

AbdullinAM commented 1 month ago

Description of changes made

The original version of CoverageVisualisationService uses Java Stream API. It has two problems:

  1. It does not give any particular performance improvements and just makes code mode complicated.
  2. It uses Java 16 API with Stream.toList() method, which prevents TestSpark being compiled on lower versions of JDK.

Why is merge request needed

This fix allows TestSpark to be build on JDK 11 and lower

Other notes

What is missing?