- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 129 for assertGet (0.16 sec)
-
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/ServerWithExpectations.groovy
@Override void resetExpectations() { try { if (failure != null) { throw failure } for (ServerExpectation e in expectations) { e.assertMet() } } finally { failure = null expectations.clear() } } @Override protected void after() { stop() resetExpectations()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.9K bytes - Viewed (0) -
tensorflow/c/kernels_test.cc
TF_EXPECT_OK(status); ASSERT_NE(nullptr, kernel.get()); p.op_kernel = kernel.get(); OpKernelContext ctx(&p); kernel->Compute(&ctx); ASSERT_EQ(2, num_inputs); ASSERT_EQ(1, num_outputs); ASSERT_EQ(123, ctx.mutable_output(0)->scalar<tensorflow::uint8>()()); } } TEST(TestKernel, DeleteKernelBuilderIsOkOnNull) { TF_DeleteKernelBuilder(nullptr); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 50.4K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/sftp/SFTPServer.groovy
} void assertMet() { //can never be not met } } class SftpAllowAll implements SftpExpectation { final boolean failing = false final boolean missing = false boolean matches(Buffer buffer, int type, int id) { return true } void assertMet() { //can never be not met
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 17.1K bytes - Viewed (0) -
cni/pkg/util/pluginutil.go
// Given an unmarshalled CNI config JSON map, return the plugin list asserted as a []interface{} func GetPlugins(cniConfigMap map[string]any) (plugins []any, err error) { plugins, ok := cniConfigMap["plugins"].([]any) if !ok { err = fmt.Errorf("error reading plugin list from CNI config") return } return } // Given the raw plugin interface, return the plugin asserted as a map[string]interface{}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/python/testing_test.py
'shapes': [ [3, 3], [3, None], ], 'has_bias': [True, False], }] combinations = testing.parameter_combinations(test_parameters) self.assertLen(combinations, 4) self.assertIn({'shapes': [3, 3], 'has_bias': True}, combinations) self.assertIn({'shapes': [3, 3], 'has_bias': False}, combinations) self.assertIn({'shapes': [3, None], 'has_bias': True}, combinations)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 21 08:51:46 UTC 2024 - 2.3K bytes - Viewed (0) -
src/runtime/error.go
_interface *_type concrete *_type asserted *_type missingMethod string // one method needed by Interface, missing from Concrete } func (*TypeAssertionError) RuntimeError() {} func (e *TypeAssertionError) Error() string { inter := "interface" if e._interface != nil { inter = toRType(e._interface).string() } as := toRType(e.asserted).string() if e.concrete == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:10:41 UTC 2024 - 9.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/ifaceassert/ifaceassert.go
URL: "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/ifaceassert", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, } // assertableTo checks whether interface v can be asserted into t. It returns // nil on success, or the first conflicting method on failure. func assertableTo(free *typeparams.Free, v, t types.Type) *types.Func { if t == nil || v == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/jit/rearrange_function_argument_pass_test.cc
const FunctionDef *f1_rewritten = fld.Find("f1_rearrange_0"); CHECK_NE(f1_rewritten, nullptr); ASSERT_EQ(f1_rewritten->signature().input_arg_size(), 2); EXPECT_EQ(f1_rewritten->signature().input_arg(0).type(), DT_BOOL); EXPECT_EQ(f1_rewritten->signature().input_arg(1).type(), DT_RESOURCE); ASSERT_EQ(f1_rewritten->signature().output_arg_size(), 1); EXPECT_EQ(f1_rewritten->signature().output_arg(0).type(), DT_BOOL);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 09 11:36:41 UTC 2024 - 10.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/dump_graph_test.cc
TF_CHECK_OK(NodeBuilder("A", "NoOp").Finalize(&graph, &node)); setenv("TF_DUMP_GRAPH_PREFIX", testing::TmpDir().c_str(), 1); UseMlirForGraphDump(MlirDumpConfig()); string ret = DumpGraphToFile("tir", graph); ASSERT_EQ(ret, io::JoinPath(testing::TmpDir(), "tir.mlir")); string actual; TF_ASSERT_OK(ReadFileToString(Env::Default(), ret, &actual)); } TEST(Dump, TextualIrWithOptions) { Graph graph(OpRegistry::Global());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Feb 26 03:47:51 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/cc/saved_model/fingerprinting_utils_test.cc
TEST(FingerprintingTest, TestSerializeProto) { std::string many_fields_text_proto = R"pb( string_field: "abc123" )pb"; ManyFields many_fields; TF_ASSERT_OK(ParseTextProto(many_fields_text_proto, &many_fields)); ASSERT_EQ(SerializeProto(many_fields), many_fields.SerializeAsString()); } TEST(FingerprintingTest, TestHashFieldsV2) { std::string cpb_file = io::JoinPath(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 20 22:19:55 UTC 2024 - 15.2K bytes - Viewed (0)