#include <map>
#include <memory>
#include <string>
#include "gtest/gtest.h"
#include "modules/planning/proto/traffic_rule_config.pb.h"
#include "modules/planning/on_lane_planning.h"
#include "modules/planning/planning_base.h"
Go to the source code of this file.
◆ ENABLE_RULE
#define ENABLE_RULE |
( |
|
RULE_ID, |
|
|
|
ENABLED |
|
) |
| this->rule_enabled_[RULE_ID] = ENABLED |
◆ RUN_GOLDEN_TEST
#define RUN_GOLDEN_TEST |
( |
|
sub_case_num | ) |
|
Value:{ \
const ::testing::TestInfo* const test_info = \
::testing::UnitTest::GetInstance()->current_test_info(); \
bool no_trajectory_point = false; \
bool run_planning_success = \
RunPlanning(test_info->name(), sub_case_num, no_trajectory_point); \
EXPECT_TRUE(run_planning_success); \
}
◆ RUN_GOLDEN_TEST_DECISION
#define RUN_GOLDEN_TEST_DECISION |
( |
|
sub_case_num | ) |
|
Value:{ \
const ::testing::TestInfo* const test_info = \
::testing::UnitTest::GetInstance()->current_test_info(); \
bool no_trajectory_point = true; \
bool run_planning_success = \
RunPlanning(test_info->name(), sub_case_num, no_trajectory_point); \
EXPECT_TRUE(run_planning_success); \
}
◆ TMAIN
Value:int main(
int argc,
char** argv) {
\ ::testing::InitGoogleTest(&argc, argv); \
::google::ParseCommandLineFlags(&argc, &argv, true); \
return RUN_ALL_TESTS(); \
}
bool Init(const char *binary_name)