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

Function TEST

tests/cpp/common/test_io.cc:15–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14namespace xgboost::common {
15TEST(MemoryFixSizeBuffer, Seek) {
16 size_t constexpr kSize{64};
17 std::vector<int32_t> memory(kSize);
18 MemoryFixSizeBuffer buf(memory.data(), memory.size());
19 buf.Seek(MemoryFixSizeBuffer::kSeekEnd);
20 size_t end = buf.Tell();
21 ASSERT_EQ(end, kSize);
22}
23
24TEST(IO, FileExtension) {
25 std::string filename{u8"model.json"};

Callers

nothing calls this directly

Calls 15

FileExtensionFunction · 0.85
LoadSequentialFileFunction · 0.85
CmdOutputFunction · 0.85
TakeMethod · 0.80
GenerateDMatrixMethod · 0.80
SetParamMethod · 0.80
UpdateOneIterMethod · 0.80
c_strMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45
SeekMethod · 0.45
TellMethod · 0.45

Tested by

no test coverage detected