MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / GetFieldNames

Function GetFieldNames

oneflow/core/intrusive/flat_msg_test.cpp:32–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31template<typename T>
32std::vector<std::string> GetFieldNames(T* flat_msg) {
33 std::vector<std::string> field_names;
34 flat_msg->template __WalkVerboseField__<DumpFieldName>(&field_names);
35 return field_names;
36}
37
38template<typename T>
39void CheckSoleFieldName(T* flat_msg, const std::string& expected) {

Callers 2

CheckSoleFieldNameFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected