Fix Konsist test. Was causing issue with AsyncProvider : PreviewParameterProvider<Async<Unit>>
This commit is contained in:
parent
dfcffce243
commit
760f4a284f
1 changed files with 2 additions and 0 deletions
|
|
@ -55,6 +55,8 @@ class KonsistClassNameTest {
|
||||||
val providedType = it.text
|
val providedType = it.text
|
||||||
.substringBefore(">")
|
.substringBefore(">")
|
||||||
.substringAfter("<")
|
.substringAfter("<")
|
||||||
|
// Get the substring before the first '<' to remove the generic type
|
||||||
|
.substringBefore("<")
|
||||||
.removeSuffix("?")
|
.removeSuffix("?")
|
||||||
.replace(".", "")
|
.replace(".", "")
|
||||||
it.name.endsWith("Provider") && it.name.contains(providedType)
|
it.name.endsWith("Provider") && it.name.contains(providedType)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue