| 61 | } |
| 62 | |
| 63 | TEST(MutableOpResolverTest, FinOp) { |
| 64 | MutableOpResolver resolver; |
| 65 | resolver.AddBuiltin(BuiltinOperator_ADD, GetDummyRegistration()); |
| 66 | |
| 67 | const TfLiteRegistration* found_registration = |
| 68 | resolver.FindOp(BuiltinOperator_ADD, 1); |
| 69 | ASSERT_NE(found_registration, nullptr); |
| 70 | EXPECT_TRUE(found_registration->invoke == DummyInvoke); |
| 71 | EXPECT_EQ(found_registration->builtin_code, BuiltinOperator_ADD); |
| 72 | EXPECT_EQ(found_registration->version, 1); |
| 73 | } |
| 74 | |
| 75 | TEST(MutableOpResolverTest, FindMissingOp) { |
| 76 | MutableOpResolver resolver; |
nothing calls this directly
no test coverage detected