mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:01:40 +00:00
Fix Konsist test. Was causing issue with AsyncProvider : PreviewParameterProvider<Async<Unit>>
This commit is contained in:
committed by
Benoit Marty
parent
b8b5874d1a
commit
92763be1aa
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user