tensorflow/core/api_def/api_test.cc
// Check that OpDef's do not have descriptions and summaries.
// Descriptions and summaries must be in corresponding ApiDefs.
Check that OpDef's do not have descriptions and summaries.
Descriptions and summaries must be in corresponding ApiDefs.
Check that OpDef ' s do not have descriptions and summaries . Descriptions and summaries must be in corresponding ApiDefs .
TEST_F(BaseApiTest, OpDefsShouldNotHaveDocs) {
  auto* excluded_ops = GetExcludedOps();
  for (const auto& op : ops_.op()) {
    if (excluded_ops->find(op.name()) != excluded_ops->end()) {
      continue;
    }
    ASSERT_TRUE(op.summary().empty()) << GetOpDefHasDocStringError(op.name());
    ASSERT_TRUE(op.description().empty())
        << GetOpDefHasDocStringError(op.name());
    for (const auto& arg : op.input_arg()) {
      ASSERT_TRUE(arg.description().empty())
          << GetOpDefHasDocStringError(op.name());
    }
    for (const auto& arg : op.output_arg()) {
      ASSERT_TRUE(arg.description().empty())
          << GetOpDefHasDocStringError(op.name());
    }
    for (const auto& attr : op.attr()) {
      ASSERT_TRUE(attr.description().empty())
          << GetOpDefHasDocStringError(op.name());
    }
  }
}
TEST_F ( BaseApiTest , OpDefsShouldNotHaveDocs ) { auto * excluded_ops = GetExcludedOps ( ) ; for ( const auto & op : ops_ . op ( ) ) { if ( excluded_ops -> find ( op . name ( ) ) != excluded_ops -> end ( ) ) { continue ; } ASSERT_TRUE ( op . summary ( ) . empty ( ) ) << GetOpDefHasDocStringError ( op . name ( ) ) ; ASSERT_TRUE ( op . description ( ) . empty ( ) ) << GetOpDefHasDocStringError ( op . name ( ) ) ; for ( const auto & arg : op . input_arg ( ) ) { ASSERT_TRUE ( arg . description ( ) . empty ( ) ) << GetOpDefHasDocStringError ( op . name ( ) ) ; } for ( const auto & arg : op . output_arg ( ) ) { ASSERT_TRUE ( arg . description ( ) . empty ( ) ) << GetOpDefHasDocStringError ( op . name ( ) ) ; } for ( const auto & attr : op . attr ( ) ) { ASSERT_TRUE ( attr . description ( ) . empty ( ) ) << GetOpDefHasDocStringError ( op . name ( ) ) ; } } }
Check that OpDef's do not have descriptions and summaries.
Check that OpDef ' s do not have descriptions and summaries .