Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 4,140 for action1 (0.16 sec)

  1. platforms/ide/tooling-api-builders/src/test/groovy/org/gradle/tooling/internal/provider/runner/DefaultBuildControllerTest.groovy

            then:
            result.getModel() == model
        }
    
        def "runs supplied actions"() {
            def action1 = Mock(Supplier)
            def action2 = Mock(Supplier)
            def action3 = Mock(Supplier)
    
            when:
            def result = controller.run([action1, action2, action3])
    
            then:
            result == ["one", "two", "three"]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 08:56:30 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/async/ServiceLifecycleTest.groovy

        def "can use service when not stopped"() {
            def action = Mock(Runnable)
    
            when:
            lifecycle.use(action)
    
            then:
            1 * action.run()
            0 * _._
        }
    
        def "can use service concurrently from multiple threads"() {
            given:
            def action1 = {
                instant.action1Started
                thread.blockUntil.action2Done
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:55 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. subprojects/core/src/testFixtures/groovy/org/gradle/api/tasks/AbstractSpockTaskTest.groovy

        }
    
        def testSetActions() {
            when:
            Action action1 = Actions.doNothing()
            getTask().actions = [action1]
    
            Action action2 = Actions.doNothing()
            getTask().actions = [action2]
    
            then:
            [new AbstractTask.TaskActionWrapper(action2, "doLast(Action)")] ==  getTask().actions
        }
    
        def testAddActionWithNull() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 23 14:27:55 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/labels_test.go

    	deletionGracePeriod := int64(10)
    	terminationGracePeriod := int64(10)
    	lifecycle := &v1.Lifecycle{
    		// Left PostStart as nil
    		PreStop: &v1.LifecycleHandler{
    			Exec: &v1.ExecAction{
    				Command: []string{"action1", "action2"},
    			},
    			HTTPGet: &v1.HTTPGetAction{
    				Path:   "path",
    				Host:   "host",
    				Port:   intstr.FromInt32(8080),
    				Scheme: "scheme",
    			},
    			TCPSocket: &v1.TCPSocketAction{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 22:43:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. platforms/software/resources-sftp/src/test/groovy/org/gradle/internal/resource/transport/sftp/SftpClientFactoryTest.groovy

                    instant.action1
                    thread.blockUntil.action2
                    sftpClientFactory.releaseSftpClient(actualClient1)
                }
    
                start {
                    actualClient2 = sftpClientFactory.createSftpClient(uri, credentials)
                    instant.action2
                    thread.blockUntil.action1
                    sftpClientFactory.releaseSftpClient(actualClient2)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. platforms/documentation/docs/src/docs/userguide/reference/ci-systems/github-actions.adoc

    [[sec:configure_github_actions]]
    == Configure GitHub Actions
    
    You can create a GitHub Actions workflow by adding a `.github/workflows/<workflow-name>.yml` file to your repository.
    This workflow definition file contains all relevant instructions for building the project on GitHub Actions.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 08 14:41:08 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/main/java/org/gradle/api/Action.java

     */
    package org.gradle.api;
    
    /**
     * Performs some action against objects of type T.
     *
     * @param <T> The type of object which this action accepts.
     */
    @HasImplicitReceiver
    public interface Action<T> {
        /**
         * Performs this action against the given object.
         *
         * @param t The object to perform the action on.
         */
        void execute(T t);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 968 bytes
    - Viewed (0)
Back to top