Adapt Konsist test for Fake Rust classes.
This commit is contained in:
parent
4a4a8073fa
commit
2d9b0bbe19
1 changed files with 4 additions and 3 deletions
|
|
@ -68,11 +68,12 @@ class KonsistClassNameTest {
|
|||
.withoutName(
|
||||
"FakeFileSystem",
|
||||
"FakeImageLoader",
|
||||
"FakeRustRoom",
|
||||
)
|
||||
.assertTrue {
|
||||
val interfaceName = it.name.replace("Fake", "")
|
||||
it.name.startsWith("Fake") &&
|
||||
val interfaceName = it.name
|
||||
.replace("FakeRust", "")
|
||||
.replace("Fake", "")
|
||||
(it.name.startsWith("Fake") || it.name.startsWith("FakeRust")) &&
|
||||
it.parents().any { parent -> parent.name.replace(".", "") == interfaceName }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue