MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/core/framework/op_registration_test.cc:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34} // namespace
35
36TEST(OpRegistrationTest, TestBasic) {
37 std::unique_ptr<OpRegistry> registry(new OpRegistry);
38 Register("Foo", registry.get());
39 OpList op_list;
40 registry->Export(true, &op_list);
41 EXPECT_EQ(op_list.op().size(), 1);
42 EXPECT_EQ(op_list.op(0).name(), "Foo");
43}
44
45TEST(OpRegistrationTest, TestDuplicate) {
46 std::unique_ptr<OpRegistry> registry(new OpRegistry);

Callers

nothing calls this directly

Calls 9

ExportMethod · 0.80
ProcessRegistrationsMethod · 0.80
SetWatcherMethod · 0.80
RegisterFunction · 0.70
nameMethod · 0.65
getMethod · 0.45
sizeMethod · 0.45
opMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected