Fix Konsist test. Was causing issue with AsyncProvider : PreviewParameterProvider<Async<Unit>>

This commit is contained in:
Benoit Marty
2023-11-06 15:00:39 +01:00
committed by Benoit Marty
parent dfcffce243
commit 760f4a284f

View File

@@ -55,6 +55,8 @@ class KonsistClassNameTest {
val providedType = it.text
.substringBefore(">")
.substringAfter("<")
// Get the substring before the first '<' to remove the generic type
.substringBefore("<")
.removeSuffix("?")
.replace(".", "")
it.name.endsWith("Provider") && it.name.contains(providedType)