Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 49 for doStuff2 (0.14 sec)

  1. testing/internal-testing/src/test/groovy/org/gradle/test/fixtures/concurrent/ConcurrentSpecTest.groovy

            when:
            operation.doStuff {
                operation.doStuff.end
            }
    
            then:
            IllegalStateException e = thrown()
            e.message == "Operation 'doStuff' has not completed yet."
        }
    
        def "cannot query operation duration while it is running"() {
            when:
            operation.doStuff {
                operation.doStuff.duration
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/MethodInvocationSerializerTest.groovy

            then:
            result.method == method
            result.arguments == [1, 2] as Object[]
        }
    
        interface Thing {
            String doStuff(Thing[] things)
        }
    
        def "serializes a method invocation with array type parameters"() {
            def method = Thing.class.getMethod("doStuff", Thing[].class)
            def invocation = new MethodInvocation(method, [[] as Thing[]] as Object[])
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 5K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/InitScriptExecutionIntegrationTest.groovy

    } finally {
        if (initscript.classLoader instanceof Closeable) {
            initscript.classLoader.close()
        }
    }
    """
    
            and:
            buildFile << 'task doStuff'
    
            when:
            result = executer.usingInitScript(initScript).withTasks('doStuff').run()
    
            then:
            outputContains('quiet message')
            result.assertHasErrorOutput('error message')
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/NestedInputIntegrationTest.groovy

                class GeneratorTask extends DefaultTask {
                    @Output${kind}
                    final ${type.name} output = project.objects.${factory}()
    
                    @TaskAction
                    void doStuff() {
                        output${generatorAction}
                    }
                }
    
                task generator(type: GeneratorTask) {
                    output.set(project.layout.buildDirectory.${lookup}('output'))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  5. testing/integ-test/src/integTest/groovy/org/gradle/integtests/BuildAggregationIntegrationTest.groovy

                task build(type: GradleBuild) {
                    dir = 'other'
                    tasks = ['dostuff']
                }
    '''
    
            and:
            file('other/settings.gradle') << "rootProject.name = 'other'"
            file('other/build.gradle') << '''
                assert gradle.parent != null
                task dostuff {
                    doLast {
                        assert gradle.parent != null
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. platforms/jvm/language-groovy/src/testFixtures/resources/org/gradle/groovy/compile/AbstractGroovyCompilerIntegrationSpec/canUseBuiltInAstTransform/src/test/groovy/TestDelegate.groovy

    package org.gradle.groovy.compile.GroovyCompilerIntegrationSpec.canUseBuiltInAstTransform.src.test.groovy
    
    class TestDelegate {
        def doStuff(String value) {
            return "[$value]"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 194 bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/DynamicObjectIntegrationTest.groovy

                }
                assert defaultTask.doStuff() == 'method'
                assert javaTask.doStuff() == 'method'
                assert groovyTask.doStuff() == 'method'
                assert configurations.test.doStuff() == 'method'
                configurations.test.dependencies.each {
                    assert it.doStuff() == 'method'
                }
                assert repositories.doStuff() == 'method'
                repositories {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  8. platforms/jvm/language-groovy/src/testFixtures/resources/org/gradle/groovy/compile/AbstractGroovyCompilerIntegrationSpec/canUseBuiltInAstTransform/src/test/groovy/UseBuiltInTransformTest.groovy

    import org.junit.Test
    
    class UseBuiltInTransformTest {
        @Delegate final TestDelegate delegate = new TestDelegate()
    
        @Test
        void transformHasBeenApplied() {
            assert doStuff("hi") == "[hi]"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 320 bytes
    - Viewed (0)
  9. test/fixedbugs/issue32680b.go

    // license that can be found in the LICENSE file.
    
    package p
    
    func hashBytesRaw(b0, b1, b2, b3, b7 byte) uint64 {
    	return (uint64(b0) | uint64(b1)<<8 | uint64(b2)<<16 | uint64(b3)<<24)
    }
    
    func doStuff(data []byte) uint64 {
    	return hashBytesRaw(data[0], data[1], data[2], data[3], data[7])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 412 bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/file/TaskFilePropertiesIntegrationTest.groovy

            file('settings.gradle') << 'include "a", "b"'
            file('a/build.gradle') << '''
    configurations { compile }
    dependencies { compile project(path: ':b', configuration: 'archives') }
    
    task doStuff(type: InputTask) {
        src = configurations.compile + fileTree('src/java')
    }
    
    class InputTask extends DefaultTask {
        @InputFiles
        def FileCollection src
    }
    '''
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top