Adapt Konsist test for Fake Rust classes.
This commit is contained in:
parent
d9c9741c76
commit
35fcb96e47
1 changed files with 4 additions and 3 deletions
|
|
@ -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 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue