Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for initPipe (0.31 sec)

  1. testing/internal-testing/src/main/groovy/org/gradle/integtests/fixtures/RedirectStdinExtension.groovy

                def oldStdin = System.in
                initPipe()
                System.setIn(emulatedSystemIn)
                try {
                    invocation.proceed()
                } finally {
                    System.setIn(oldStdin)
                    closePipe()
                }
            }
    
            private void initPipe() {
                if (stdinPipe == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/GradlePluginIntegrationTest.groovy

    class GradlePluginIntegrationTest extends AbstractIntegrationSpec {
        File initFile;
    
        def setup() {
            initFile = temporaryFolder.createFile("initscripts/init.gradle")
            executer.usingInitScript(initFile);
        }
    
        @ToBeFixedForConfigurationCache(because = "Gradle.buildFinished")
        def "can apply binary plugin from init script"() {
            when:
            initFile << """
            apply plugin:SimpleGradlePlugin
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 18 22:31:11 UTC 2020
    - 3.6K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/UserInitScriptExecuterFixture.groovy

            def temporaryFolder = executer.gradleUserHomeDir.file("init.d")
            def initFile = temporaryFolder.file(this.getClass().getSimpleName() + "-init.gradle")
            executer.beforeExecute {
                // On test retry the user home dir may be deleted, so verify the init script exists before each invocation
                if (!initFile.file) {
                    initFile.text = initScriptContent()
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/InitScriptExecuterFixture.groovy

            def temporaryFolder = testDir.testDirectory
            def initFile = temporaryFolder.file(this.getClass().getSimpleName() + "-init.gradle")
            initFile.text = initScriptContent()
            executer.beforeExecute {
                usingInitScript(initFile)
            }
            executer.afterExecute {
                afterBuild()
            }
    
            return base
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  5. src/mime/type.go

    	".png":  "image/png",
    	".svg":  "image/svg+xml",
    	".wasm": "application/wasm",
    	".webp": "image/webp",
    	".xml":  "text/xml; charset=utf-8",
    }
    
    var once sync.Once // guards initMime
    
    var testInitMime, osInitMime func()
    
    func initMime() {
    	if fn := testInitMime; fn != nil {
    		fn()
    	} else {
    		setMimeTypes(builtinTypesLower, builtinTypesLower)
    		osInitMime()
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/configuration/ExecuteUserLifecycleListenerBuildOperationIntegrationTest.groovy

            // verify that we don't get any duplicates in these
            sanityCheckApplicationIds()
    
            if (notEmpty(initFile)) {
                initScriptAppId = findScriptApplicationId(targetsGradle(), scriptFile(initFile))
            }
            if (hasScript(initFile, scriptFile.name)) {
                initOtherScriptAppId = findScriptApplicationId(targetsGradle(), scriptFile(scriptFile))
            }
            if (notEmpty(settingsFile)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 40.2K bytes
    - Viewed (0)
  7. src/internal/syscall/windows/exec_windows_test.go

    	}
    
    	tml := (*windows.TOKEN_MANDATORY_LABEL)(p)
    
    	sid := (*syscall.SID)(unsafe.Pointer(tml.Label.Sid))
    
    	return sid.String()
    }
    
    func tokenGetInfo(t syscall.Token, class uint32, initSize int) (unsafe.Pointer, error) {
    	n := uint32(initSize)
    	for {
    		b := make([]byte, n)
    		e := syscall.GetTokenInformation(t, class, &b[0], uint32(len(b)), &n)
    		if e == nil {
    			return unsafe.Pointer(&b[0]), nil
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  8. internal/bucket/bandwidth/measurement.go

    }
    
    // newBucketMeasurement creates a new instance of the measurement with the initial start time.
    func newBucketMeasurement(initTime time.Time) *bucketMeasurement {
    	return &bucketMeasurement{
    		startTime: initTime,
    	}
    }
    
    // incrementBytes add bytes reported for a bucket.
    func (m *bucketMeasurement) incrementBytes(bytes uint64) {
    	atomic.AddUint64(&m.bytesSinceLastWindow, bytes)
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 03 20:41:51 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. src/mime/type_unix_test.go

    // license that can be found in the LICENSE file.
    
    //go:build unix || (js && wasm)
    
    package mime
    
    import (
    	"testing"
    )
    
    func initMimeUnixTest(t *testing.T) {
    	once.Do(initMime)
    	err := loadMimeGlobsFile("testdata/test.types.globs2")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	loadMimeFile("testdata/test.types")
    }
    
    func TestTypeByExtensionUNIX(t *testing.T) {
    	initMimeUnixTest(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 08 21:09:03 UTC 2022
    - 945 bytes
    - Viewed (0)
  10. src/mime/type_test.go

    func BenchmarkTypeByExtension(b *testing.B) {
    	initMime()
    	b.ResetTimer()
    
    	for _, ext := range []string{
    		".html",
    		".HTML",
    		".unused",
    	} {
    		b.Run(ext, func(b *testing.B) {
    			b.RunParallel(func(pb *testing.PB) {
    				for pb.Next() {
    					TypeByExtension(ext)
    				}
    			})
    		})
    	}
    }
    
    func BenchmarkExtensionsByType(b *testing.B) {
    	initMime()
    	b.ResetTimer()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 08 21:09:03 UTC 2022
    - 4.9K bytes
    - Viewed (0)
Back to top