Minor: remove redundant default argument 'weakTesting = false'

This commit is contained in:
Alexey Tsvetkov
2018-07-12 23:43:00 +03:00
parent c9a62e078a
commit 41a47ea50f
4 changed files with 14 additions and 14 deletions
@@ -264,7 +264,7 @@ fun getSomething() = 10
project.build("assembleDebug", options = options) {
assertSuccessful()
val affectedSources = project.projectDir.getFilesByNames("libAndroidUtil.kt", "useLibAndroidUtil.kt")
assertCompiledKotlinSources(project.relativize(affectedSources), weakTesting = false)
assertCompiledKotlinSources(project.relativize(affectedSources))
}
val libAndroidClassesOnlyUtilKt = project.projectDir.getFileByName("LibAndroidClassesOnlyUtil.kt")
@@ -272,7 +272,7 @@ fun getSomething() = 10
project.build("assembleDebug", options = options) {
assertSuccessful()
val affectedSources = project.projectDir.getFilesByNames("LibAndroidClassesOnlyUtil.kt", "useLibAndroidClassesOnlyUtil.kt")
assertCompiledKotlinSources(project.relativize(affectedSources), weakTesting = false)
assertCompiledKotlinSources(project.relativize(affectedSources))
}
val libJvmUtilKt = project.projectDir.getFileByName("LibJvmUtil.kt")
@@ -280,7 +280,7 @@ fun getSomething() = 10
project.build("assembleDebug", options = options) {
assertSuccessful()
val affectedSources = project.projectDir.getFilesByNames("LibJvmUtil.kt", "useLibJvmUtil.kt")
assertCompiledKotlinSources(project.relativize(affectedSources), weakTesting = false)
assertCompiledKotlinSources(project.relativize(affectedSources))
}
}
@@ -92,7 +92,7 @@ class IncrementalCompilationJvmMultiProjectIT : BaseIncrementalCompilationMultiP
assertSuccessful()
val affectedSources = File(project.projectDir, "app").allKotlinFiles()
val relativePaths = project.relativize(affectedSources)
assertCompiledKotlinSources(relativePaths, weakTesting = false)
assertCompiledKotlinSources(relativePaths)
}
}
}
@@ -119,7 +119,7 @@ abstract class BaseIncrementalCompilationMultiProjectIT : BaseGradleIT() {
assertSuccessful()
val affectedSources = project.projectDir.getFilesByNames("fooCallUseAB.kt", "barUseAB.kt")
val relativePaths = project.relativize(affectedSources)
assertCompiledKotlinSources(relativePaths, weakTesting = false)
assertCompiledKotlinSources(relativePaths)
}
}
@@ -146,7 +146,7 @@ open class A {
assertSuccessful()
val affectedSources = project.projectDir.getFilesByNames("A.kt", "B.kt", "AA.kt", "BB.kt")
val relativePaths = project.relativize(affectedSources)
assertCompiledKotlinSources(relativePaths, weakTesting = false)
assertCompiledKotlinSources(relativePaths)
}
}
@@ -167,7 +167,7 @@ open class A {
"BB.kt", "fooCallUseAB.kt", "fooUseB.kt"
)
val relativePaths = project.relativize(affectedSources)
assertCompiledKotlinSources(relativePaths, weakTesting = false)
assertCompiledKotlinSources(relativePaths)
}
}
@@ -191,14 +191,14 @@ open class A {
assertSuccessful()
val affectedSources = project.projectDir.allKotlinFiles()
val relativePaths = project.relativize(affectedSources)
assertCompiledKotlinSources(relativePaths, weakTesting = false)
assertCompiledKotlinSources(relativePaths)
}
val aaKt = project.projectFile("AA.kt")
aaKt.modify { "$it " }
project.build("build") {
assertSuccessful()
assertCompiledKotlinSources(project.relativize(aaKt), weakTesting = false)
assertCompiledKotlinSources(project.relativize(aaKt))
}
}
@@ -232,14 +232,14 @@ open class A {
assertSuccessful()
val affectedSources = project.projectDir.allKotlinFiles()
val relativePaths = project.relativize(affectedSources)
assertCompiledKotlinSources(relativePaths, weakTesting = false)
assertCompiledKotlinSources(relativePaths)
}
val aaKt = project.projectFile("AA.kt")
aaKt.modify { "$it " }
project.build("build") {
assertSuccessful()
assertCompiledKotlinSources(project.relativize(aaKt), weakTesting = false)
assertCompiledKotlinSources(project.relativize(aaKt))
}
}
@@ -264,7 +264,7 @@ open class A {
assertFailed()
val affectedSources = project.projectDir.allKotlinFiles()
val relativePaths = project.relativize(affectedSources)
assertCompiledKotlinSources(relativePaths, weakTesting = false)
assertCompiledKotlinSources(relativePaths)
}
}
}
@@ -105,7 +105,7 @@ abstract class IncrementalCompilationJavaChangesBase(val usePreciseJavaTracking:
assertSuccessful()
val affectedSources = project.projectDir.getFilesByNames(*expectedAffectedSources.toTypedArray())
val relativePaths = project.relativize(affectedSources)
assertCompiledKotlinSources(relativePaths, weakTesting = false)
assertCompiledKotlinSources(relativePaths)
}
}
}
@@ -146,7 +146,7 @@ class KotlinGradleIT : BaseGradleIT() {
"Greeter.kt", "KotlinGreetingJoiner.kt",
"TestGreeter.kt", "TestKotlinGreetingJoiner.kt"
)
assertCompiledKotlinSources(project.relativize(affectedSources), weakTesting = false)
assertCompiledKotlinSources(project.relativize(affectedSources))
}
}