Skip to content

Commit

Permalink
cleanup some unnecessary includes in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ten0 committed Jan 12, 2024
1 parent 49d7217 commit 1a4f1aa
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/cpp_tests/test_single_row.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,11 @@

#include <gtest/gtest.h>
#include <testutils.h>
#include <LightGBM/utils/byte_buffer.h>
#include <LightGBM/utils/log.h>
#include <LightGBM/c_api.h>
#include <LightGBM/dataset.h>

#include <iostream>
#include <fstream>

using LightGBM::ByteBuffer;
using LightGBM::Dataset;
using LightGBM::Log;
using LightGBM::TestUtils;

TEST(SingleRow, JustWorks) {
Expand All @@ -26,10 +20,6 @@ TEST(SingleRow, JustWorks) {
result = TestUtils::LoadDatasetFromExamples("binary_classification/binary.train", "max_bin=15", &train_dataset);
EXPECT_EQ(0, result) << "LoadDatasetFromExamples train result code: " << result;

DatasetHandle test_dataset;
result = TestUtils::LoadDatasetFromExamples("binary_classification/binary.test", "max_bin=15", &test_dataset);
EXPECT_EQ(0, result) << "LoadDatasetFromExamples test result code: " << result;

BoosterHandle booster_handle;
result = LGBM_BoosterCreate(train_dataset, "app=binary metric=auc num_leaves=31 verbose=0", &booster_handle);
EXPECT_EQ(0, result) << "LGBM_BoosterCreate result code: " << result;
Expand Down Expand Up @@ -150,7 +140,4 @@ TEST(SingleRow, JustWorks) {

result = LGBM_DatasetFree(train_dataset);
EXPECT_EQ(0, result) << "LGBM_DatasetFree result code: " << result;

result = LGBM_DatasetFree(test_dataset);
EXPECT_EQ(0, result) << "LGBM_DatasetFree result code: " << result;
}

0 comments on commit 1a4f1aa

Please sign in to comment.