[Tests] Introduce reversible source file preprocessor

This commit is contained in:
Evgeniy.Zhelenskiy
2021-12-08 22:52:03 +03:00
parent cb4ec932d7
commit b1d1f87318
12 changed files with 28 additions and 35 deletions
@@ -11,8 +11,8 @@ class WithoutJvmInlineTestMethodModel(
withPostfix: Boolean,
) : TransformingTestMethodModel(
source,
transformer = "TransformersFunctions::" +
if (withAnnotation) "replaceOptionalJvmInlineAnnotationWithReal" else "removeOptionalJvmInlineAnnotation"
transformer = "TransformersFunctions.get" +
if (withAnnotation) "ReplaceOptionalJvmInlineAnnotationWithReal()" else "RemoveOptionalJvmInlineAnnotation()"
) {
override val name: String = source.name + if (withPostfix) "_valueClasses" else ""
}