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

Function TestInteger

tests/cpp/common/test_charconv.cc:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace xgboost {
29namespace {
30void TestInteger(char const* res, int64_t i) {
31 char result[xgboost::NumericLimits<int64_t>::kToCharsSize];
32 auto ret = to_chars(result, result + sizeof(result), i);
33 *ret.ptr = '\0';
34 EXPECT_STREQ(res, result);
35}
36
37static float Int32Bits2Float(uint32_t bits) {
38 float f;

Callers 1

TESTFunction · 0.85

Calls 1

to_charsFunction · 0.85

Tested by

no test coverage detected