Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for withIdle (0.2 sec)

  1. src/runtime/pprof/pprof_test.go

    	// detector's 8k-goroutine limit
    	for _, n := range []int{50, 500, 5000} {
    		b.Run(fmt.Sprintf("Profile.WriteTo idle %d", n), withIdle(n, benchWriteTo))
    		b.Run(fmt.Sprintf("Profile.WriteTo churn %d", n), withIdle(n, withChurn(benchWriteTo)))
    		b.Run(fmt.Sprintf("runtime.GoroutineProfile churn %d", n), withIdle(n, withChurn(benchGoroutineProfile)))
    	}
    }
    
    var emptyCallStackTestRun int64
    
    // Issue 18836.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  2. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/UpgradedPropertiesChangesTest.kt

        @Test
        fun `should report binary incompatibility for upgraded property without any metadata`() {
            checkNotBinaryCompatible(
                v1 = {
                    withFile(
                        "java/com/example/Task.java",
                        """
                            package com.example;
    
                            public abstract class Task {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 08:40:36 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

            resolve(path).apply {
                mkdirs()
            }
    
        private
        fun File.withSettings(text: String = ""): File =
            withFile("settings.gradle.kts", text)
    
        private
        fun File.withBuildScript(text: String = ""): File =
            withFile("build.gradle.kts", text)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 14:00:46 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GradleKotlinDslRegressionsTest.kt

                    jvmTargetValidationMode = org.jetbrains.kotlin.gradle.dsl.jvm.JvmTargetValidationMode.WARNING
                }
            """)
    
            withFile("src/main/kotlin/code.kt", """
                import org.gradle.api.*
    
                class MyPlugin : Plugin<Project> {
                    override fun apply(project: Project): Unit = project.run {
                        ext {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 07:57:29 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/resolver/KotlinScriptDependenciesResolverTest.kt

                "Project"
            )
        }
    
        private
        fun assertSucceedsForScriptWithReceiver(fileName: String, receiverType: String) {
            assertSucceeds(
                withFile(fileName, requiringImplicitReceiverOf(receiverType))
            )
        }
    
        private
        fun requiringImplicitReceiverOf(type: String) = """
            val $type.implicitReceiver get() = this
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:12:50 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  6. testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/ScriptCachingIntegrationTest.kt

            // given: same init, settings & build files all applying same script
            val same = withFile("same.gradle.kts", """println("Same script on ${'$'}this")""")
            val sameApply = """apply(from = "same.gradle.kts")"""
            val initScriptFile = withFile("same.init.gradle.kts", sameApply)
    
            val initializationFile = cachedInitializationFile(initScriptFile, false, true)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:33:23 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    			oldObj: "baz",
    			schema: withRule(stringType, `
    				!oldSelf.hasValue() || self == "bar"
    			`),
    		},
    		{
    			name:   "integer",
    			obj:    1,
    			oldObj: 2,
    			schema: withRule(integerType, `
    				!oldSelf.hasValue() || self == 1
    			`),
    		},
    		{
    			name:   "number",
    			obj:    1.1,
    			oldObj: 2.2,
    			schema: withRule(numberType, `
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go

    			schemaGenerator: func(max *int64) *schema.Structural {
    				strType := withMaxLength(primitiveType("string", ""), max)
    				array := withMaxItems(arrayType("atomic", nil, &strType), max)
    				array = withRule(array, "self.join(' ') == 'aa bb'")
    				return &array
    			},
    			expectedCalcCost: 329853068905,
    			setMaxElements:   10,
    			expectedSetCost:  43,
    		},
    		{
    			name: "extended library isSorted",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 51.5K bytes
    - Viewed (0)
Back to top