Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 68 for DoCall (0.15 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/metaobject/MixInClosurePropertiesAsMethodsDynamicObjectTest.groovy

            when:
            obj.invokeMethod("m", ["not-a-number"] as Object[])
    
            then:
            MissingMethodException e = thrown()
            e.method == "doCall"
        }
    
        def "invokes configure method on property whose value is a NamedDomainObjectContainer"() {
            def container = Mock(NamedDomainObjectContainer)
            def cl = {}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/util/ClosureBackedAction.java

                        copy.call(delegate);
                    }
                }
            } catch (groovy.lang.MissingMethodException e) {
                if (Objects.equal(e.getType(), closure.getClass()) && Objects.equal(e.getMethod(), "doCall")) {
                    throw new InvalidActionClosureException(closure, delegate);
                }
                throw e;
            }
        }
    
        public Closure getClosure() {
            return closure;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/AbstractTestDirectoryProvider.java

        public void cleanup() {
            if (cleanup && dir != null && dir.exists()) {
                ConcurrentTestUtil.poll(new Closure(null, null) {
                    @SuppressWarnings("UnusedDeclaration")
                    void doCall() throws IOException {
                        dir.forceDeleteDir();
                    }
                });
            }
        }
    
        @Override
        public Statement apply(final Statement base, Description description) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        assertFalse(monitor.isOccupiedByCurrentThread());
    
        doEnterScenarioSetUp();
    
        boolean interruptedBeforeCall = Thread.currentThread().isInterrupted();
        Outcome actualOutcome = doCall();
        boolean occupiedAfterCall = monitor.isOccupiedByCurrentThread();
        boolean interruptedAfterCall = Thread.currentThread().isInterrupted();
    
        if (occupiedAfterCall) {
          guard.setSatisfied(true);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        assertFalse(monitor.isOccupiedByCurrentThread());
    
        doEnterScenarioSetUp();
    
        boolean interruptedBeforeCall = Thread.currentThread().isInterrupted();
        Outcome actualOutcome = doCall();
        boolean occupiedAfterCall = monitor.isOccupiedByCurrentThread();
        boolean interruptedAfterCall = Thread.currentThread().isInterrupted();
    
        if (occupiedAfterCall) {
          guard.setSatisfied(true);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/configuration/internal/DefaultListenerBuildOperationDecorator.java

                this.application = application;
                this.delegate = delegate;
                this.registrationPoint = registrationPoint;
            }
    
            @SuppressWarnings("unused")
            public void doCall(final Object... args) {
                buildOperationRunner.run(new Operation(application.getId(), registrationPoint) {
                    @Override
                    public void run(final BuildOperationContext context) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/base-services-groovy/src/main/java/org/gradle/groovy/scripts/internal/AstUtils.java

                throw new IllegalArgumentException("expecting generated closure class node");
            }
    
            List<MethodNode> doCallMethods = classNode.getDeclaredMethods("doCall");
            return doCallMethods.get(0);
        }
    
        /**
         * Returns true if the given statement may have some effect as part of a script body.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  8. src/testing/sub_test.go

    			startParallel: make(chan bool),
    			maxParallel:   tc.max,
    		}
    		for j, call := range tc.run {
    			doCall := func(f func()) chan bool {
    				done := make(chan bool)
    				go func() {
    					f()
    					done <- true
    				}()
    				return done
    			}
    			started := false
    			switch call.typ {
    			case add1:
    				signal := doCall(ctx.waitParallel)
    				select {
    				case <-signal:
    					started = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 21:27:08 UTC 2023
    - 23.8K bytes
    - Viewed (0)
  9. platforms/core-runtime/BYTECODE-INTERCEPTION-README.md

    Additionally, to that we also transform `ScriptBytecodeAdapter`, see [GroovyDynamicDispatchInterceptors.java](../../subprojects/core/src/main/java/org/gradle/internal/classpath/declarations/GroovyDynamicDispatchInterceptors.java),
    and all `doCall` methods, see [CallInterceptionClosureInstrumentingClassVisitor.java](../../subprojects/core/src/main/java/org/gradle/internal/classpath/CallInterceptionClosureInstrumentingClassVisitor.java) where we intercept code in closures.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 09:22:58 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  10. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java

        }
    
        public void copyFrom(final URL resource) {
            final TestFile testFile = this;
            RetryUtil.retry(new Closure(null, null) {
                @SuppressWarnings("UnusedDeclaration")
                void doCall() {
                    try {
                        FileUtils.copyURLToFile(resource, testFile);
                    } catch (IOException e) {
                        throw new UncheckedIOException(e);
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:31:52 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top