Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for DoSomething (0.23 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/BuildScriptVisibilityIntegrationTest.groovy

            settingsFile << "include 'child1'"
            buildFile """
    def doSomething(def value) {
        return "{" + value + "}"
    }
    private String doSomethingElse(def value) {
        return "[" + value + "]"
    }
    println "root: " + doSomething(10)
    println "root: " + doSomethingElse(10)
    """
            file("child1/build.gradle") << """
    println "child: " + doSomething(11)
    println "child: " + doSomethingElse(11)
    """
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  2. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/event/BroadcastDispatchTest.groovy

            1 * listener3.doSomething("param")
            0 * _
    
            when:
            dispatch = BroadcastDispatch.empty(TestListener).add(listener1).add(listener2).addAll([listener3])
            !dispatch.empty
            dispatch.size() == 3
            dispatch.dispatch(invocation)
    
            then:
            1 * listener1.doSomething("param")
            1 * listener2.doSomething("param")
            1 * listener3.doSomething("param")
            0 * _
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 14.9K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r68/CompositeBuildTaskExecutionCrossVersionSpec.groovy

            file('other-build/build.gradle') << """
                tasks.register('doSomething') {
                    doLast {
                        println 'do something'
                    }
                }
            """
    
            when:
            executeTaskViaGradleProjectLaunchable("doSomething")
    
            then:
            assertHasBuildSuccessfulLogging()
            outputContains("do something")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/work_issue51204.txt

    go 1.18
    -- test/file.go --
    package test
    
    func DoSomething() {
    }
    -- test2/go.mod --
    module example.com/test2
    
    go 1.18
    
    replace example.com/test => ../test
    
    require example.com/test v0.0.0-00010101000000-000000000000
    -- test2/file.go --
    package test2
    
    import (
    	"example.com/test"
    )
    
    func DoSomething() {
    	test.DoSomething()
    }
    -- test2/sub/go.mod --
    module example.com/test2/sub
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 15 22:28:43 UTC 2022
    - 749 bytes
    - Viewed (0)
  5. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildTaskExecutionIntegrationTest.groovy

                tasks.register('doSomething') {
                    description = "Prints the message 'do something'"
                    doLast {
                        println 'do something'
                    }
                }
            """
    
            expect:
            succeeds(":other-build:tasks", "--all")
            outputContains("doSomething - Prints the message 'do something'")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/schema/extract/ModelSchemaUtilsTest.groovy

            @Incubating
            Object doSomething() { null }
        }
    
        class Child extends Base implements Serializable {
            @Nullable
            Object doSomething() { null }
        }
    
        def "overridden methods retain annotations"() {
            when:
            def methods = ModelSchemaUtils.getCandidateMethods(Child)
    
            then:
            methods.methodNames() == (["doSomething"] as Set)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  7. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/javadoc/JavadocModularizedJavaIntegrationTest.groovy

                public class Test {
                    public void doSomething() {
                        TestInternal.doSomething();
                    }
                }
            """
            file("test/src/main/java/test/internal/TestInternal.java") << """
                package test.internal;
    
                public class TestInternal {
                    public static void doSomething() { }
                }
            """
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/internal/action/InstantiatingActionTest.groovy

                this.service = service
                this.x = x
            }
    
            @Override
            void execute(Details details) {
                details.see(service.doSomething(), x)
            }
        }
    
        static interface SomeService<T> {
            T doSomething()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 14 07:19:04 UTC 2021
    - 5.5K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/initialization/MixInLegacyTypesClassLoaderTest.groovy

                    public static final String SOME_CONST_WITH_GETTER = "Other Value";
                    public static final String SOME_CONST_WITH_RHS_EXPRESSION = doSomething("Derived Value");
                    public static final String SOME_CONST_WITH_RHS_EXPRESSION_AND_GETTER = doSomething("Other Derived Value");
    
                    public static String getSomeStuff() { return SOME_CONST; }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 22 23:58:47 UTC 2022
    - 8.9K bytes
    - Viewed (0)
  10. test/typeparam/issue51367.dir/a.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    type A[T any] struct{}
    
    func (_ A[T]) Method() {}
    
    func DoSomething[P any]() {
    	a := A[*byte]{}
    	a.Method()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 28 15:58:07 UTC 2022
    - 281 bytes
    - Viewed (0)
Back to top