| 34 | } // namespace |
| 35 | |
| 36 | TEST(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 | |
| 45 | TEST(OpRegistrationTest, TestDuplicate) { |
| 46 | std::unique_ptr<OpRegistry> registry(new OpRegistry); |
nothing calls this directly
no test coverage detected