| 23 | |
| 24 | template <typename ParamType> |
| 25 | inline std::string ObjTestNameGenerator(const ::testing::TestParamInfo<ParamType>& info) { |
| 26 | auto name = std::string{info.param}; |
| 27 | // Name must be a valid c++ symbol |
| 28 | auto it = std::find(name.cbegin(), name.cend(), ':'); |
| 29 | if (it != name.cend()) { |
| 30 | name[std::distance(name.cbegin(), it)] = '_'; |
| 31 | } |
| 32 | return name; |
| 33 | }; |
| 34 | |
| 35 | /** |
| 36 | * @brief Construct random label for testing. |
no test coverage detected