- Avoid the use of size_t in the partitioner. - Use `Span` instead of `Elem` where `node_id` is not needed. - Remove the `const_cast`. - Make sure the constness is not removed in the `Elem` by making it reference only. size_t is implementation-defined, which causes issue when we want to pass pointer or span.
This folder contains test cases for XGBoost c++ core, Python package and some other CI facilities.
Directories
- ci_build: Test facilities for Jenkins CI and GitHub action.
- cli: Basic test for command line executable
xgboost. Most of the other command line specific tests are in Python testtest_cli.py. - cpp: Tests for C++ core, using Google test framework.
- python: Tests for Python package, demonstrations and CLI. For how to setup the
dependencies for tests, see conda files in
ci_build. - python-gpu: Similar to python tests, but for GPU.
- travis: CI facilities for Travis.
- test_distributed: Test for distributed systems including spark and dask.
Others
- pytest.ini: Describes the
pytestmarker for python tests, some markers are generated byconftest.pyfile.