- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for CachedScript (0.12 sec)
-
testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/fixtures/CompilationCache.kt
override fun misses(vararg cachedScripts: CachedScript) = cachedScripts.forEach { assertCompilations(it, 1) } override fun hits(vararg cachedScripts: CachedScript) = cachedScripts.forEach { assertCompilations(it, 0) } private fun assertCompilations(cachedScript: CachedScript, count: Int) = when (cachedScript) { is CachedScript.WholeFile -> cachedScript.stages.forEach { assertCompilations(it, count) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 4.3K bytes - Viewed (0) -
testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/fixtures/ClassLoadingCache.kt
override fun misses(vararg cachedScripts: CachedScript) = cachedScripts.forEach { assertClassLoads(it, 1) } override fun hits(vararg cachedScripts: CachedScript) = cachedScripts.forEach { assertClassLoads(it, 0) } private fun assertClassLoads(cachedScript: CachedScript, count: Int) = when (cachedScript) { is CachedScript.WholeFile -> cachedScript.stages.forEach { assertClassLoads(it, count) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.6K bytes - Viewed (0) -
testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/fixtures/KotlinDslCacheFixtures.kt
import java.io.File internal interface KotlinDslCacheFixture { fun misses(vararg cachedScripts: CachedScript) fun hits(vararg cachedScripts: CachedScript) } sealed class CachedScript { class WholeFile( val stage1: CompilationStage, val stage2: CompilationStage ) : CachedScript() { val stages = listOf(stage1, stage2) } class CompilationStage(
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2.3K bytes - Viewed (0) -
testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/fixtures/CompilationTrace.kt
class CompileTrace(private val operations: List<String>) { fun assertScriptCompile(stage: CachedScript.CompilationStage) { val description = operationDescription(stage) require(operations.any { it.contains(description) }) { "Expecting operation `$description`!" } } fun assertNoScriptCompile(stage: CachedScript.CompilationStage) { val description = operationDescription(stage)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.7K bytes - Viewed (0) -
testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/ScriptCachingIntegrationTest.kt
it is Program.Script || it is Program.Staged } private data class MultiProjectCachedScripts( val settingsFile: CachedScript.WholeFile, val rootBuildFile: CachedScript.WholeFile, val leftBuildFile: CachedScript.WholeFile, val rightBuildFile: CachedScript.WholeFile
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 11:33:23 UTC 2024 - 13.4K bytes - Viewed (0)