| 92 | |
| 93 | template <typename BinIdxType> |
| 94 | void CheckColumWithMissingValue(const DenseColumnIter<BinIdxType, true>& col, |
| 95 | const GHistIndexMatrix& gmat) { |
| 96 | for (auto i = 0ull; i < col.Size(); i++) { |
| 97 | if (col.IsMissing(i)) { |
| 98 | continue; |
| 99 | } |
| 100 | EXPECT_EQ(gmat.index[gmat.row_ptr[i]], col.GetGlobalBinIdx(i)); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | TEST(ColumnMatrix, DenseColumnWithMissing) { |
| 105 | int32_t max_num_bins[] = {static_cast<int32_t>(std::numeric_limits<uint8_t>::max()) + 1, |
no test coverage detected