mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Adapt Konsist test for Fake Rust classes.
This commit is contained in:
+4
-3
@@ -68,11 +68,12 @@ class KonsistClassNameTest {
|
|||||||
.withoutName(
|
.withoutName(
|
||||||
"FakeFileSystem",
|
"FakeFileSystem",
|
||||||
"FakeImageLoader",
|
"FakeImageLoader",
|
||||||
"FakeRustRoom",
|
|
||||||
)
|
)
|
||||||
.assertTrue {
|
.assertTrue {
|
||||||
val interfaceName = it.name.replace("Fake", "")
|
val interfaceName = it.name
|
||||||
it.name.startsWith("Fake") &&
|
.replace("FakeRust", "")
|
||||||
|
.replace("Fake", "")
|
||||||
|
(it.name.startsWith("Fake") || it.name.startsWith("FakeRust")) &&
|
||||||
it.parents().any { parent -> parent.name.replace(".", "") == interfaceName }
|
it.parents().any { parent -> parent.name.replace(".", "") == interfaceName }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user