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

Function HostCheck

tests/cpp/data/test_cat_container.h:12–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace xgboost {
11namespace test_cat_detail {
12inline void HostCheck(CatContainer const& cats) {
13 ASSERT_TRUE(cats.HasCategorical());
14 ASSERT_FALSE(cats.Empty());
15 ASSERT_TRUE(cats.HostCanRead());
16 ASSERT_FALSE(cats.DeviceCanRead());
17}
18
19inline void DeviceCheck(CatContainer const& cats) {
20 ASSERT_TRUE(cats.HasCategorical());

Callers 2

TestCatContainerStrFunction · 0.85
TestCatContainerMixedFunction · 0.85

Calls 4

HasCategoricalMethod · 0.45
EmptyMethod · 0.45
HostCanReadMethod · 0.45
DeviceCanReadMethod · 0.45

Tested by

no test coverage detected