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

Function TEST_F

tensorflow/core/api_def/api_test.cc:210–221  ·  view source on GitHub ↗

Check that all ops have an ApiDef.

Source from the content-addressed store, hash-verified

208
209// Check that all ops have an ApiDef.
210TEST_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.
224TEST_F(BaseApiTest, AllApiDefsHaveCorrespondingOp) {

Callers

nothing calls this directly

Calls 15

descriptionMethod · 0.80
attrMethod · 0.80
nameMethod · 0.65
opMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected