tests/cpp/test_metainfo: Add tests to save and load

This commit is contained in:
AbdealiJK
2016-12-02 12:35:11 +05:30
committed by Tianqi Chen
parent 8eb69e0677
commit ef7fe06cf8
3 changed files with 58 additions and 1 deletions

17
tests/cpp/helpers.h Normal file
View File

@@ -0,0 +1,17 @@
#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();
long GetFileSize(const std::string filename);
#endif