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

Function TEST

tests/cpp/common/test_json.cc:145–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145TEST(Json, TestParseObject) {
146 std::string str = R"obj({"TreeParam" : {"num_feature": "10"}})obj";
147 auto json = Json::Load(StringView{str.c_str(), str.size()});
148}
149
150TEST(Json, ParseNumber) {
151 {

Callers

nothing calls this directly

Calls 15

JsonNullClass · 0.85
GetModelStrFunction · 0.85
JsonObjectClass · 0.85
JsonArrayClass · 0.85
JsonStringClass · 0.85
LoadSequentialFileFunction · 0.85
StringViewClass · 0.85
TestRroundTripFunction · 0.85
ParallelForFunction · 0.85
c_strMethod · 0.80
ThreadsMethod · 0.80
resizeMethod · 0.80

Tested by

no test coverage detected