Check that all ops have an ApiDef.
| 208 | |
| 209 | // Check that all ops have an ApiDef. |
| 210 | TEST_F(BaseApiTest, AllOpsAreInApiDef) { |
| 211 | auto* excluded_ops = GetExcludedOps(); |
| 212 | for (const auto& op : ops_.op()) { |
| 213 | if (excluded_ops->find(op.name()) != excluded_ops->end()) { |
| 214 | continue; |
| 215 | } |
| 216 | EXPECT_TRUE(api_defs_map_.find(op.name()) != api_defs_map_.end()) |
| 217 | << op.name() << " op does not have api_def_*.pbtxt file. " |
| 218 | << "Please add api_def_" << op.name() << ".pbtxt file " |
| 219 | << "under tensorflow/core/api_def/base_api/ directory."; |
| 220 | } |
| 221 | } |
| 222 | |
| 223 | // Check that ApiDefs have a corresponding op. |
| 224 | TEST_F(BaseApiTest, AllApiDefsHaveCorrespondingOp) { |
nothing calls this directly
no test coverage detected