Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 230 for on_failure (0.18 sec)

  1. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest_pred_impl.h

    // Don't use this in your code.
    #define GTEST_PRED_FORMAT1_(pred_format, v1, on_failure)\
      GTEST_ASSERT_(pred_format(#v1, v1), \
                    on_failure)
    
    // Internal macro for implementing {EXPECT|ASSERT}_PRED1.  Don't use
    // this in your code.
    #define GTEST_PRED1_(pred, v1, on_failure)\
      GTEST_ASSERT_(::testing::AssertPred1Helper(#pred, \
                                                 #v1, \
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest_pred_impl.h

    // Don't use this in your code.
    #define GTEST_PRED_FORMAT1_(pred_format, v1, on_failure)\
      GTEST_ASSERT_(pred_format(#v1, v1), \
                    on_failure)
    
    // Internal macro for implementing {EXPECT|ASSERT}_PRED1.  Don't use
    // this in your code.
    #define GTEST_PRED1_(pred, v1, on_failure)\
      GTEST_ASSERT_(::testing::AssertPred1Helper(#pred, \
                                                 #v1, \
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  3. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/RealEventSource.kt

      }
    
      fun processResponse(response: Response) {
        response.use {
          if (!response.isSuccessful) {
            listener.onFailure(this, null, response)
            return
          }
    
          val body = response.body
    
          if (!body.isEventStream()) {
            listener.onFailure(
              this,
              IllegalStateException("Invalid content-type: ${body.contentType()}"),
              response,
            )
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/SingleArtifactResolutionResultSpec.groovy

        }
    
        void shouldFail(@DelegatesTo(value = ExecutionFailure, strategy = Closure.DELEGATE_FIRST) Closure<?> onFailure) {
            expectSuccess = false
            if (onFailure == null) {
                throw new IllegalArgumentException("Please provide an explanation for the failure")
            }
            failureExpectations << onFailure
        }
    
        void noComponentPublished() {
            shouldFail {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/cli/ExceptionReportingAction.java

                // Exception has already been reported
                executionListener.onFailure(e);
            } catch (ServiceCreationException e) {
                reporter.execute(new ContextAwareException(new InitializationException(e)));
                executionListener.onFailure(e);
            } catch (Throwable t) {
                reporter.execute(t);
                executionListener.onFailure(t);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. platforms/core-runtime/concurrent/src/main/java/org/gradle/internal/concurrent/ExecutorPolicy.java

                } catch (Throwable throwable) {
                    onFailure(String.format("Failed to execute %s.", command), throwable);
                }
            }
    
            @Override
            public <T> T onExecute(Callable<T> command) throws Exception {
                try {
                    return command.call();
                } catch (Exception exception) {
                    onFailure(String.format("Failed to execute %s.", command), exception);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java

              @Override
              public void onSuccess(String result) {
                fail("Was not expecting onSuccess() to be called.");
              }
    
              @Override
              public synchronized void onFailure(Throwable t) {
                assertFalse(called);
                assertThat(t).isInstanceOf(CancellationException.class);
                called = true;
              }
            };
        addCallback(f, callback, directExecutor());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Nov 15 16:33:21 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DefaultModelBuilderTest.groovy

            then:
            1 * asyncConnection.run(!null, !null) >> {args ->
                adaptedHandler = args[1]
            }
    
            when:
            adaptedHandler.onFailure(failure)
    
            then:
            1 * handler.onFailure(!null) >> {args -> wrappedFailure = args[0] }
            _ * asyncConnection.displayName >> '[connection]'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java

              @Override
              public void onSuccess(String result) {
                fail("Was not expecting onSuccess() to be called.");
              }
    
              @Override
              public synchronized void onFailure(Throwable t) {
                assertFalse(called);
                assertThat(t).isInstanceOf(CancellationException.class);
                called = true;
              }
            };
        addCallback(f, callback, directExecutor());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 06 12:56:11 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/cli/ExceptionReportingActionTest.groovy

            when:
            action.execute(listener)
    
            then:
            1 * target.execute(listener) >> { throw failure }
            1 * loggingOutput.flush()
            1 * reporter.execute(failure)
            1 * listener.onFailure(failure)
            0 * _._
        }
    
        def "service creation failure is reported as initialization exception"() {
            def failure = new ServiceCreationException("Service creation failed")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top