MCPcopy Create free account
hub / github.com/dmlc/xgboost / MakeObjNamesForTest

Function MakeObjNamesForTest

tests/cpp/objective_helpers.h:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15namespace xgboost {
16inline 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
24template <typename ParamType>
25inline std::string ObjTestNameGenerator(const ::testing::TestParamInfo<ParamType>& info) {

Callers 3

test_learner.ccFile · 0.85
test_objective.ccFile · 0.85

Calls 2

cbeginMethod · 0.45
cendMethod · 0.45

Tested by

no test coverage detected