Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,457 for actioned (0.32 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/TypedDomainObjectContainerWrapperTest.groovy

            def container = parent.containerWithType(CreatedSubType)
            def action = { CreatedSubType subType ->
                subType.value = "actioned"
            } as Action<CreatedSubType>
    
            and:
            container.create("created1")
            container.create("created2", {
                it.value = "changed"
            })
            container.create("created3", action)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 10 22:34:19 UTC 2021
    - 5K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/ImmutableActionSetTest.groovy

            def action3 = Mock(Action)
            def action4 = Mock(Action)
            def action5 = Mock(Action)
            def action6 = Mock(Action)
    
            when:
            def set = ImmutableActionSet.of(action1, action2)
            set = set.add(action1)
            set = set.add(action2)
            set = set.add(ImmutableActionSet.of(action2, action1))
            set.execute("value")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api-builders/src/test/groovy/org/gradle/tooling/internal/provider/runner/IntermediateBuildActionRunnerTest.groovy

            then:
            result == ["one", "two", "three"]
    
            1 * buildModelParameters.isParallelToolingApiActions() >> false
            1 * action1.get() >> "one"
            1 * action2.get() >> "two"
            1 * action3.get() >> "three"
            0 * _
        }
    
        def "queues supplied actions to run in parallel"() {
            given:
            def action1 = Mock(Supplier)
            def action2 = Mock(Supplier)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 20 17:58:18 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/action.go

    // An Actor runs an action.
    type Actor interface {
    	Act(*Builder, context.Context, *Action) error
    }
    
    // An ActorFunc is an Actor that calls the function.
    type ActorFunc func(*Builder, context.Context, *Action) error
    
    func (f ActorFunc) Act(b *Builder, ctx context.Context, a *Action) error {
    	return f(b, ctx, a)
    }
    
    // An Action represents a single action in the action graph.
    type Action struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:39:17 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/Actions.java

         *
         * @param actions The actions to make a composite of.
         * @param <T> The type of the object that action is for
         * @return The composite action.
         */
        public static <T> Action<T> composite(Iterable<? extends Action<? super T>> actions) {
            ImmutableList.Builder<Action<? super T>> builder = ImmutableList.builder();
            for (Action<? super T> action : actions) {
                if (doesSomething(action)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 7K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/execution/ExecuteActionsTaskExecuterTest.groovy

        }
    
        def "captures exceptions from both task action and async work"() {
            given:
            task.getTaskActions() >> [action1, action2]
            task.hasTaskActions() >> true
            action1.execute(task) >> {
                throw new RuntimeException("failure from task action")
            }
    
            when:
            executer.execute(task, state, executionContext)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/DefaultTaskContainerTest.groovy

            1 * action.execute(task)
            0 * action._
        }
    
        void "container and task specific configuration actions are executed when task is created"() {
            def action1 = Mock(Action)
            def action2 = Mock(Action)
            def action3 = Mock(Action)
            def action4 = Mock(Action)
            def action5 = Mock(Action)
            def action6 = Mock(Action)
            def task = task("task")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 14:36:44 UTC 2024
    - 44.9K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r32/Action2.java

     */
    
    package org.gradle.integtests.tooling.r32;
    
    import org.gradle.tooling.BuildAction;
    import org.gradle.tooling.BuildController;
    
    import java.util.Collections;
    import java.util.List;
    
    public class Action2 implements BuildAction<List<String>> {
        @Override
        public List<String> execute(BuildController controller) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/plugins/DefaultPluginManagerTest.groovy

            manager.withPlugin("bar", action2)
    
            then:
            2 * action1.execute(_) >> { AppliedPlugin p ->
                assert p.id == "foo"
            }
            2 * action2.execute(_) >> { AppliedPlugin p ->
                assert p.id == "bar"
            }
            0 * action1._
            0 * action2._
        }
    
        def "action is notified for plugin with org.gradle id"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultTaskTest.groovy

            1 == defaultTask.actions.size()
    
            defaultTask.is(defaultTask.doFirst(action2))
            2 == defaultTask.actions.size()
    
            action2.is(defaultTask.actions[0].action)
            action1.is(defaultTask.actions[1].action)
        }
    
        def "doLast() adds action to the end of actions list"() {
            given:
            Action<Task> action1 = Actions.doNothing()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 24 11:56:02 UTC 2023
    - 16.2K bytes
    - Viewed (0)
Back to top