1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
In file included from /home/charles/Desktop/Westguard-SSM/src/test/EvaluateControllerTest.cc:9:0:
/home/charles/Desktop/Westguard-SSM/src/test/../Controller/EvaluateController.h: In member function float {anonymous}::EvaluateControllerTest::calculateMean(std::__cxx11::list<float>):
/home/charles/Desktop/Westguard-SSM/src/test/../Controller/EvaluateController.h:50:11: error: float EvaluateController::calculateMean(std::__cxx11::list<float>) is private
float calculateMean(list<float> measure);
^
/home/charles/Desktop/Westguard-SSM/src/test/EvaluateControllerTest.cc:25:90: error: within this context
float calculateMean(list<float> measure){return controller->calculateMean(measure);}
^
In file included from /home/charles/Desktop/Westguard-SSM/src/test/EvaluateControllerTest.cc:9:0:
/home/charles/Desktop/Westguard-SSM/src/test/../Controller/EvaluateController.h: In member function virtual void {anonymous}::EvaluateControllerTest_calculateMeanTest_Test::TestBody():
/home/charles/Desktop/Westguard-SSM/src/test/../Controller/EvaluateController.h:50:11: error: float EvaluateController::calculateMean(std::__cxx11::list<float>) is private
float calculateMean(list<float> measure);
^
In file included from /home/charles/Desktop/Westguard-SSM/third_parties/googletest/include/gtest/gtest.h:1874:0,
from /home/charles/Desktop/Westguard-SSM/src/test/EvaluateControllerTest.cc:8:
/home/charles/Desktop/Westguard-SSM/third_parties/googletest/include/gtest/gtest.h:1923:25: error: within this context
EXPECT_PRED_FORMAT2(::testing::internal:: \
^
/home/charles/Desktop/Westguard-SSM/third_parties/googletest/include/gtest/gtest_pred_impl.h:77:52: note: in definition of macro GTEST_ASSERT_
if (const ::testing::AssertionResult gtest_ar = (expression)) \
^
/home/charles/Desktop/Westguard-SSM/third_parties/googletest/include/gtest/gtest_pred_impl.h:162:3: note: in expansion of macro GTEST_PRED_FORMAT2_
GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_)
^
/home/charles/Desktop/Westguard-SSM/third_parties/googletest/include/gtest/gtest.h:1923:3: note: in expansion of macro EXPECT_PRED_FORMAT2
EXPECT_PRED_FORMAT2(::testing::internal:: \
^
/home/charles/Desktop/Westguard-SSM/src/test/EvaluateControllerTest.cc:1006:5: note: in expansion of macro EXPECT_EQ
EXPECT_EQ(evaluateController->calculateMean(measure),9);
^
In file included from /home/charles/Desktop/Westguard-SSM/src/test/EvaluateControllerTest.cc:9:0:
/home/charles/Desktop/Westguard-SSM/src/test/../Controller/EvaluateController.h:50:11: error: float EvaluateController::calculateMean(std::__cxx11::list<float>) is private
float calculateMean(list<float> measure);
^
In file included from /home/charles/Desktop/Westguard-SSM/third_parties/googletest/include/gtest/gtest.h:1874:0,
from /home/charles/Desktop/Westguard-SSM/src/test/EvaluateControllerTest.cc:8:
/home/charles/Desktop/Westguard-SSM/src/test/EvaluateControllerTest.cc:1006:56: error: within this context
EXPECT_EQ(evaluateController->calculateMean(measure),9);
^
/home/charles/Desktop/Westguard-SSM/third_parties/googletest/include/gtest/gtest_pred_impl.h:77:52: note: in definition of macro GTEST_ASSERT_
if (const ::testing::AssertionResult gtest_ar = (expression)) \
^
/home/charles/Desktop/Westguard-SSM/third_parties/googletest/include/gtest/gtest_pred_impl.h:162:3: note: in expansion of macro GTEST_PRED_FORMAT2_
GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_NONFATAL_FAILURE_)
^
/home/charles/Desktop/Westguard-SSM/third_parties/googletest/include/gtest/gtest.h:1923:3: note: in expansion of macro EXPECT_PRED_FORMAT2
EXPECT_PRED_FORMAT2(::testing::internal:: \
^
/home/charles/Desktop/Westguard-SSM/src/test/EvaluateControllerTest.cc:1006:5: note: in expansion of macro EXPECT_EQ
EXPECT_EQ(evaluateController->calculateMean(measure),9);
^
src/test/CMakeFiles/Test.dir/build.make:62: recipe for target 'src/test/CMakeFiles/Test.dir/EvaluateControllerTest.cc.o' failed
make[3]: *** [src/test/CMakeFiles/Test.dir/EvaluateControllerTest.cc.o] Error 1
CMakeFiles/Makefile2:469: recipe for target 'src/test/CMakeFiles/Test.dir/all' failed
make[2]: *** [src/test/CMakeFiles/Test.dir/all] Error 2
CMakeFiles/Makefile2:481: recipe for target 'src/test/CMakeFiles/Test.dir/rule' failed
make[1]: *** [src/test/CMakeFiles/Test.dir/rule] Error 2
Makefile:266: recipe for target 'Test' failed
make: *** [Test] Error 2 |