etrobocon2018 feat.KatLab
770af34cce41ae9c30c41303275e1add2daae0c3 (with uncommitted changes)
総合概要
諸情報
名前空間
クラス
ファイル
ファイル一覧
ファイルメンバ
全て
クラス
名前空間
ファイル
関数
変数
列挙型
列挙値
フレンド
マクロ定義
ページ
str
apps
test
RightCourseTest.cpp
[詳解]
1
5
/* コンパイル(平木場)
6
$ g++-7 RightCourseTest.cpp ../src/RightCourse.cpp gtest_main.o gtest-all.o -I../include
7
-I../../googletest/googletest/include
8
*/
9
10
#include "
RightCourse.h
"
// このヘッダファイルのcppファイルをテスト
11
#include "
Controller.h
"
12
#include <gtest/gtest.h>
13
#include <vector>
14
15
namespace
etrobocon2018_test {
16
17
class
RightCourseTest
:
public
::testing::Test {
18
protected
:
19
virtual
void
SetUp
() {}
20
Controller
controller
;
21
std::int32_t
firstCode
= 11111;
22
RightCourse
rc
{
controller
,
firstCode
};
23
};
24
25
// TEST_F(RightCourseTest, runTest) { rc.run(30, 0, 100, 50); }
26
}
// namespace etrobocon2018_test
etrobocon2018_test::RightCourseTest::firstCode
std::int32_t firstCode
Definition:
RightCourseTest.cpp:21
etrobocon2018_test::RightCourseTest
Definition:
RightCourseTest.cpp:17
etrobocon2018_test::RightCourseTest::SetUp
virtual void SetUp()
Definition:
RightCourseTest.cpp:19
Controller.h
RightCourse.h
Rコースを走らせるときに呼び出されるクラス
Controller
Definition:
Controller.h:29
etrobocon2018_test::RightCourseTest::controller
Controller controller
Definition:
RightCourseTest.cpp:20
RightCourse
Definition:
RightCourse.h:21
etrobocon2018_test::RightCourseTest::rc
RightCourse rc
Definition:
RightCourseTest.cpp:22
構築:
1.8.6