| 14 | |
| 15 | namespace xgboost { |
| 16 | inline auto MakeObjNamesForTest() { |
| 17 | auto list = ::dmlc::Registry<::xgboost::ObjFunctionReg>::List(); |
| 18 | std::vector<std::string> names; |
| 19 | std::transform(list.cbegin(), list.cend(), std::back_inserter(names), |
| 20 | [](auto const* entry) { return entry->name; }); |
| 21 | return names; |
| 22 | } |
| 23 | |
| 24 | template <typename ParamType> |
| 25 | inline std::string ObjTestNameGenerator(const ::testing::TestParamInfo<ParamType>& info) { |
no test coverage detected