Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 129 for assertGet (0.28 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/ServerExpectation.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.test.fixtures.server
    
    interface ServerExpectation {
        void assertMet()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 711 bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/ForbidOne.groovy

     */
    
    package org.gradle.test.fixtures.server
    
    import groovy.transform.CompileStatic
    
    @CompileStatic
    abstract class ForbidOne extends OneRequestServerExpectation {
    
        void assertMet() {
            if (run) {
                throw new AssertionError(notMetMessage as Object)
            }
        }
    
        abstract String getNotMetMessage()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 938 bytes
    - Viewed (0)
  3. tensorflow/c/experimental/gradients/custom_gradient_test.cc

        Status s =
            BuildImmediateExecutionContext(std::get<1>(GetParam()), &ctx_raw);
        ASSERT_EQ(errors::OK, s.code()) << s.message();
        ctx.reset(ctx_raw);
      }
    
      AbstractTensorHandlePtr x;
      {
        AbstractTensorHandle* x_raw = nullptr;
        Status s = TestScalarTensorHandle<float, TF_FLOAT>(ctx.get(), 1.0f, &x_raw);
        ASSERT_EQ(errors::OK, s.code()) << s.message();
        x.reset(x_raw);
      }
    
      // Pseudo-code:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 13:53:47 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/ExpectOne.groovy

     */
    
    package org.gradle.test.fixtures.server
    
    import groovy.transform.CompileStatic
    
    @CompileStatic
    abstract class ExpectOne extends OneRequestServerExpectation {
    
        @Override
        void assertMet() {
            if (!run) {
                throw new AssertionError(notMetMessage as Object)
            }
        }
    
        abstract String getNotMetMessage()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 953 bytes
    - Viewed (0)
  5. src/cmd/compile/internal/reflectdata/helpers.go

    		return true
    	}
    
    	return false
    }
    
    // assertOp asserts that n is an op.
    func assertOp(n ir.Node, op ir.Op) {
    	base.AssertfAt(n.Op() == op, n.Pos(), "want %v, have %v", op, n)
    }
    
    // assertOp2 asserts that n is an op1 or op2.
    func assertOp2(n ir.Node, op1, op2 ir.Op) {
    	base.AssertfAt(n.Op() == op1 || n.Op() == op2, n.Pos(), "want %v or %v, have %v", op1, op2, n)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 04:50:32 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest.h

      }
    };
    
    // This specialization is used when the first argument to ASSERT_EQ()
    // is a null pointer literal, like NULL, false, or 0.
    template <>
    class EqHelper<true> {
     public:
      // We define two overloaded versions of Compare().  The first
      // version will be picked when the second argument to ASSERT_EQ() is
      // NOT a pointer, e.g. ASSERT_EQ(0, AnIntFunction()) or
      // EXPECT_EQ(false, a_bool).
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 86.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset_test.py

            }
    
        repr_ds = data_gen()
        self.assertIsNone(repr_dataset.get_num_samples(repr_ds))
    
        # Make sure that the __next__() is never called during the
        # get_num_samples call.
        self.assertLen(list(repr_ds), num_samples)
    
      def test_get_num_samples_returns_none_when_len_raises_error(self):
        class LenRaisingError:
          """A test-only class that raises an error when len() is called.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 04 07:35:19 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. testing/performance/src/templates/native-dependents/test_main.cpp

    #include "gtest/gtest.h"
    #include "${generatedId}/header.h"
    
    using namespace testing;
    <%
    if (hasTests) {
        out.println """
    TEST(GeneratedTests, test_lib) {
        ASSERT_EQ(0, function_${generatedId}());
    }"""
    }
    %>
    
    int main(int argc, char **argv) {
      testing::InitGoogleTest(&argc, argv);
      return RUN_ALL_TESTS();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 316 bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util_test.cc

      EXPECT_EQ(xla_device_assignment->computation_count(), 2);
      ASSERT_EQ(xla_device_assignment->computation_devices_size(), 2);
      const auto& computation_device_0 =
          xla_device_assignment->computation_devices(0);
      ASSERT_EQ(computation_device_0.replica_device_ids_size(), 4);
      const auto& computation_device_1 =
          xla_device_assignment->computation_devices(1);
      ASSERT_EQ(computation_device_1.replica_device_ids_size(), 4);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  10. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest.h

      }
    };
    
    // This specialization is used when the first argument to ASSERT_EQ()
    // is a null pointer literal, like NULL, false, or 0.
    template <>
    class EqHelper<true> {
     public:
      // We define two overloaded versions of Compare().  The first
      // version will be picked when the second argument to ASSERT_EQ() is
      // NOT a pointer, e.g. ASSERT_EQ(0, AnIntFunction()) or
      // EXPECT_EQ(false, a_bool).
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 86.4K bytes
    - Viewed (0)
Back to top