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 (Software Testing Research) for research purposes.
1. Get rid of the necessity for the function to be inside the class
In Kotlin, there can be a function outside the class.
Therefore, the following code fails when we want to generate.