Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ADD_FAILURE (0.15 sec)

  1. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest-test-part.h

    // A copyable object representing the result of a test part (i.e. an
    // assertion or an explicit FAIL(), ADD_FAILURE(), or SUCCESS()).
    //
    // Don't inherit from TestPartResult as its destructor is not virtual.
    class GTEST_API_ TestPartResult {
     public:
      // The possible outcomes of a test part (i.e. an assertion or an
      // explicit SUCCEED(), FAIL(), or ADD_FAILURE()).
      enum Type {
        kSuccess,          // Succeeded.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  2. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-test-part.h

    // A copyable object representing the result of a test part (i.e. an
    // assertion or an explicit FAIL(), ADD_FAILURE(), or SUCCESS()).
    //
    // Don't inherit from TestPartResult as its destructor is not virtual.
    class GTEST_API_ TestPartResult {
     public:
      // The possible outcomes of a test part (i.e. an assertion or an
      // explicit SUCCEED(), FAIL(), or ADD_FAILURE()).
      enum Type {
        kSuccess,          // Succeeded.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_test.cc

          ADD_FAILURE() << i << " -- " << TF_Message(status.get());
          continue;
        }
        auto tag = tensorflow::strings::StrCat("Device #", i, " (", name, ")");
        // Copy to device
        TFE_TensorHandle* hdevice =
            TFE_TensorHandleCopyToDevice(hcpu, ctx, name.c_str(), status.get());
        if (TF_GetCode(status.get()) != TF_OK) {
          ADD_FAILURE() << tag << " -- " << TF_Message(status.get());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
  4. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest.h

    //
    // FAIL and ASSERT_* are similar to ADD_FAILURE and EXPECT_*, except
    // that they will also abort the current function on failure.  People
    // usually want the fail-fast behavior of FAIL and ASSERT_*, but those
    // writing data-driven tests often find themselves using ADD_FAILURE
    // and EXPECT_* more.
    
    // Generates a nonfatal failure with a generic message.
    #define ADD_FAILURE() GTEST_NONFATAL_FAILURE_("Failed")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 86.4K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest.h

    //
    // FAIL and ASSERT_* are similar to ADD_FAILURE and EXPECT_*, except
    // that they will also abort the current function on failure.  People
    // usually want the fail-fast behavior of FAIL and ASSERT_*, but those
    // writing data-driven tests often find themselves using ADD_FAILURE
    // and EXPECT_* more.
    
    // Generates a nonfatal failure with a generic message.
    #define ADD_FAILURE() GTEST_NONFATAL_FAILURE_("Failed")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 86.4K bytes
    - Viewed (0)
  6. tensorflow/c/c_test_util.cc

      targets_.clear();
      for (TF_Operation* t : targets) {
        targets_.emplace_back(t);
      }
    }
    
    void CSession::Run(TF_Status* s) {
      if (inputs_.size() != input_values_.size()) {
        ADD_FAILURE() << "Call SetInputs() before Run()";
        return;
      }
      ResetOutputValues();
      output_values_.resize(outputs_.size(), nullptr);
    
      const TF_Output* inputs_ptr = inputs_.empty() ? nullptr : &inputs_[0];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 15 03:16:52 UTC 2021
    - 17.8K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_experimental_test.cc

      TFE_CancellationManager* c_mgr = TFE_NewCancellationManager();
      EXPECT_FALSE(TFE_CancellationManagerIsCancelled(c_mgr));
    
      TFE_CancelCallback callback1;
      callback1.callback = [](void* context) {
        ADD_FAILURE() << "Callback1 should be deregistered.";
      };
      TFE_CancellationToken token1 = TFE_CancellationManagerGetToken(c_mgr);
      EXPECT_TRUE(TFE_CancellationManagerRegisterCallback(c_mgr, token1, &callback1,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 03:14:26 UTC 2023
    - 31.5K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_test.cc

          EXPECT_FALSE(found_scalar_const);
          found_scalar_const = true;
        } else if (IsAddN(n, 2)) {
          EXPECT_FALSE(found_add);
          found_add = true;
        } else {
          ADD_FAILURE() << "Unexpected NodeDef: " << n.DebugString();
        }
      }
      EXPECT_TRUE(found_placeholder);
      EXPECT_TRUE(found_scalar_const);
      EXPECT_TRUE(found_add);
    
      // Add another oper to the graph.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
Back to top