xgboost/tests/cpp/helpers.h
AbdealiJK d6407c3746 tests/cpp: Add tests for SparsePageDMatrix
The SparsePageDMatrix or external memory DMatrix reads data from the
file IO rather than load it into RAM.
2016-12-04 11:25:57 -08:00

22 lines
384 B
C++

#ifndef XGBOOST_TESTS_CPP_HELPERS_H_
#define XGBOOST_TESTS_CPP_HELPERS_H_
#include <iostream>
#include <fstream>
#include <cstdio>
#include <string>
#include <sys/stat.h>
#include <sys/types.h>
#include <gtest/gtest.h>
std::string TempFileName();
bool FileExists(const std::string name);
long GetFileSize(const std::string filename);
std::string CreateSimpleTestData();
#endif