[mpp, tests] Add infrastructure for *Generated KPM Core tests

This commit is contained in:
Dmitry Savvinov
2022-07-14 12:38:34 +02:00
parent 309b2f569d
commit c1e21f5b8f
9 changed files with 136 additions and 7 deletions
@@ -30,7 +30,8 @@ private val METHOD_GENERATORS = listOf(
)
class NewTestGeneratorImpl(
additionalMethodGenerators: List<MethodGenerator<Nothing>>
additionalMethodGenerators: List<MethodGenerator<Nothing>>,
private val generatorName: String = TEST_GENERATOR_NAME,
) : TestGenerator(METHOD_GENERATORS + additionalMethodGenerators) {
private val GENERATED_FILES = HashSet<String>()
@@ -155,7 +156,7 @@ class NewTestGeneratorImpl(
p.println("import java.io.File;")
p.println("import java.util.regex.Pattern;")
p.println()
p.println("/** This class is generated by {@link ", TEST_GENERATOR_NAME, "}. DO NOT MODIFY MANUALLY */")
p.println("/** This class is generated by {@link ", generatorName, "}. DO NOT MODIFY MANUALLY */")
p.generateSuppressAllWarnings()