Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 99 for Tap (0.02 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheInitScriptsIntegrationTest.groovy

        def "init script can declare build logic input"() {
            given:
            TestFile buildLogicInput = file('input.txt').tap {
                text = 'foo!'
            }
            TestFile initScript = file('initscript.gradle').tap {
                text = """
                    // TODO: replace by public API
                    def providers = gradle.services.get(ProviderFactory)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/modulemap/GenerateModuleMapFileTest.groovy

        def "can generate a simple module map file"() {
            def moduleMapFile = new File(tempDir, "module.modulemap")
            def headers = new File(tempDir, 'headers').tap { mkdirs() }
            def moreHeaders = new File(tempDir, 'moreHeaders').tap { mkdirs() }
    
            when:
            generateFile(moduleMapFile, "foo", [headers.absolutePath, moreHeaders.absolutePath])
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. platforms/jvm/toolchains-jvm-shared/src/test/groovy/org/gradle/jvm/toolchain/internal/install/DefaultJdkCacheDirectoryTest.groovy

            def install1 = new File(temporaryFolder, "jdks/jdk-1").tap { mkdirs() }
            new File(install1, DefaultJdkCacheDirectory.MARKER_FILE).createNewFile()
    
            def install2 = new File(temporaryFolder, "jdks/jdk-2").tap { mkdirs() }
            new File(install2, DefaultJdkCacheDirectory.MARKER_FILE).createNewFile()
    
            new File(temporaryFolder, "jdks/notReady").tap { mkdirs() }
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 06:41:24 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/ShortExceptionFormatterTest.groovy

    """
        }
    
        def "optionally shows causes"() {
            def causeCause = new RuntimeException("oops").tap { stackTrace = createCauseCauseTrace() }
            def cause = new IllegalArgumentException("ouch", causeCause).tap { stackTrace = createCauseTrace() }
            def exception = new Exception("argh", cause).tap { stackTrace = createStackTrace() }
    
            testLogging.showCauses >> true
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. src/math/rand/rng.go

    }
    
    // Uint64 returns a non-negative pseudo-random 64-bit integer as a uint64.
    func (rng *rngSource) Uint64() uint64 {
    	rng.tap--
    	if rng.tap < 0 {
    		rng.tap += rngLen
    	}
    
    	rng.feed--
    	if rng.feed < 0 {
    		rng.feed += rngLen
    	}
    
    	x := rng.vec[rng.feed] + rng.vec[rng.tap]
    	rng.vec[rng.feed] = x
    	return uint64(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 04 14:20:53 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  6. src/math/rand/gen_cooked.go

    // which is used for seeding all instances of rand.Source.
    // a 64bit and a 63bit version of the array is printed to
    // the standard output.
    
    package main
    
    import "fmt"
    
    const (
    	length = 607
    	tap    = 273
    	mask   = (1 << 63) - 1
    	a      = 48271
    	m      = (1 << 31) - 1
    	q      = 44488
    	r      = 3399
    )
    
    var (
    	rngVec          [length]int64
    	rngTap, rngFeed int
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/samples/incubating/build-organization/publishing-convention-plugins/groovy/convention-plugins/src/test/groovy/com/myorg/PluginTest.groovy

    abstract class PluginTest extends Specification {
        @TempDir
        File testProjectDir
        File settingsFile
        File buildFile
    
        def setup() {
            settingsFile = new File(testProjectDir, 'settings.gradle').tap { it << "rootProject.name = 'test'" }
            buildFile = new File(testProjectDir, 'build.gradle')
        }
    
        def runTask(String task) {
            return GradleRunner.create()
                    .withProjectDir(testProjectDir)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 947 bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/invocation/GradleLifecycleUnsupportedTypesIntegrationTest.groovy

            RandomAccessFile                  | RandomAccessFile | "new RandomAccessFile(file('some').tap { text = '' }, 'r').tap { close() }"
            Socket                            | Socket           | "new java.net.Socket()"
            ServerSocket                      | ServerSocket     | "new java.net.ServerSocket(0).tap { close() }"
    
            // Gradle Build Model
            DefaultGradle                     | Gradle           | "gradle"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 18:15:52 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheLambdaIntegrationTest.groovy

        def fixture = new ConfigurationCacheFixture(this)
    
        def "restores task fields whose value is a #kind Java lambda"() {
            given:
            file("buildSrc/src/main/java/my/LambdaTask.java").tap {
                parentFile.mkdirs()
                text = """
                    package my;
    
                    import org.gradle.api.*;
                    import org.gradle.api.tasks.*;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/buildCache/integration-tests/groovy/build.gradle

            ["-Ddistribution.location=${distribution.get().asFile.absolutePath}"]  // <3>
        }
    }
    
    tasks.named('integTest') {
        jvmArgumentProviders.add(
            objects.newInstance(DistributionLocationProvider).tap {  // <4>
                distribution = layout.buildDirectory.dir('dist')
            }
        )
    }
    // end::distributionDirInput[]
    
    // tag::ignoreSystemProperties[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top