Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ detekt = "2.0.0-alpha.6"
dbusJava = "5.2.2"
fileKit = "0.16.0"
humanReadable = "2.0.0"
konture = "0.8.1"
konture = "1.0.2"
kotlin = "2.4.10"
kotlinxSerialization = "1.11.0"
nucleus = "2.5.18"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ val Architecture by testSuite {
test("only the state layer reaches the git runner") {
architecture {
files {
that().notResideInAPackage("com.gitvantage.git")
.and().notHaveName { it in setOf("AppState.kt", "Registry.kt") }
that().notInPackage("com.gitvantage.git")
.and().notNamed { it in setOf("AppState.kt", "Registry.kt") }
should().notReferenceClass("com.gitvantage.git.Git")
}
}
Expand Down Expand Up @@ -265,7 +265,7 @@ val Architecture by testSuite {
test("process spawning is confined to Git and the three non-git callers") {
architecture {
files {
that().notHaveName { it in setOf("Git.kt", "Actions.kt", "GitHub.kt", "Theme.kt") }
that().notNamed { it in setOf("Git.kt", "Actions.kt", "GitHub.kt", "Theme.kt") }
should().notReferenceClass("java.lang.ProcessBuilder")
}
}
Expand Down Expand Up @@ -294,7 +294,7 @@ val Architecture by testSuite {
*/
test("the process-spawning rule can see an unimported ProcessBuilder") {
val rule = FilesRuleBuilder(Konture.projectGraph, SourceSets.production()).apply {
that().haveName("Git.kt")
that().named("Git.kt")
should().notReferenceClass("java.lang.ProcessBuilder")
}
val failure = runCatching { rule.check() }.exceptionOrNull()
Expand Down
Loading