Fitting a line needs the ranges in ray order with a known angular step. A costmap has neither: at 0.05 m with inflation it has already destroyed ray order and object shape, so the two 0.2 m wings of a dock plate are one blob there. This is the consumer that robot_sensor_ports keeps readings raw for. Pure geometry - the input is a scan layout and a vector of ranges, the output is segments in polar form with their endpoints, supporting rays and covariance. Eigen is the only dependency and only the merge step uses it. No robot_cpp, no costmap, no message types, which is what makes it testable against synthetic scans with no runtime around it: build the shape, generate the rays, and the answer is known in advance. Polar rather than slope-intercept because a vertical wall has no finite slope and a laser sees vertical walls constantly. Radius is kept non-negative so one line has one representation - otherwise the merge step sees two. Ported from laser_line_extraction (Marc Gallant, BSD) with the ROS layer removed, and four defects fixed, each with a test that fails without the fix: split() sliced with &indices[i_split - 1] and &indices.back(), dropping a point off each half at every split. Anything angular came out a ray short at both ends of every arm. mergeLines() called resize() and then inserted at end(), leaving the first half of the vector zero-filled. A merged line reported twice its real support and every index in that half pointed at ray 0. The least-squares loop had no iteration cap. The increment is a ratio of two sums that can both approach zero on a degenerate run, and when it oscillates the loop never exits - in a control thread that is a stopped robot, not a slow frame. Segments that will not converge are now dropped, since their covariance would be meaningless and the merge step decides by covariance. Merging compared line parameters and nothing else, so two halves of a wall either side of a doorway - perfectly collinear - were rejoined into one segment spanning the doorway, undoing the split that had just separated them for that exact reason. Merging now also requires the facing endpoints to be within max_line_gap, so split and merge agree on what one surface means. The corner point at a distance split now belongs to both halves. It is the last point of one surface and the first of the next; giving it to one side shortens the other arm by a ray and tilts its fit. split() is iterative over an explicit stack rather than recursive: depth is bounded only by the ray count, and a noisy scan that splits at nearly every point would recurse a thousand deep in the control thread. Parameters are validated at configure time rather than per scan. A threshold that can never produce a fit otherwise shows up as "the detector finds nothing", which is indistinguishable from a sensor fault.
460 lines
16 KiB
C++
460 lines
16 KiB
C++
/*********************************************************************
|
|
*
|
|
* Software License Agreement (BSD License)
|
|
*
|
|
* Kiểm trích đoạn thẳng bằng scan TỔNG HỢP — dựng hình trước, sinh tia sau, nên biết trước đáp án.
|
|
*
|
|
* Bốn nhóm:
|
|
* 1. hình cơ bản — tường thẳng, chữ V, khe hở;
|
|
* 2. ba lỗi của bản gốc — điểm rơi khi tách, tập tia của đoạn đã gộp, vòng lặp không trần;
|
|
* 3. đầu vào rác — rỗng, NaN, inf, sai kích thước;
|
|
* 4. cache bố cục scan.
|
|
*
|
|
* Author: DuongTD
|
|
*********************************************************************/
|
|
#include <gtest/gtest.h>
|
|
|
|
#include <cmath>
|
|
#include <limits>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include <robot_line_extraction/line_extractor.h>
|
|
|
|
namespace
|
|
{
|
|
using robot_line_extraction::Line;
|
|
using robot_line_extraction::LineExtractionParams;
|
|
using robot_line_extraction::LineExtractor;
|
|
using robot_line_extraction::ScanGeometry;
|
|
|
|
constexpr double kNaN = std::numeric_limits<double>::quiet_NaN();
|
|
constexpr double kInf = std::numeric_limits<double>::infinity();
|
|
|
|
ScanGeometry geometry(std::size_t rays, double angle_min = -M_PI / 2.0,
|
|
double angle_max = M_PI / 2.0)
|
|
{
|
|
ScanGeometry g;
|
|
g.angle_min = angle_min;
|
|
g.angle_increment = (angle_max - angle_min) / static_cast<double>(rays - 1);
|
|
g.size = rays;
|
|
return g;
|
|
}
|
|
|
|
double bearingOf(const ScanGeometry& g, std::size_t i)
|
|
{
|
|
return g.angle_min + static_cast<double>(i) * g.angle_increment;
|
|
}
|
|
|
|
/**
|
|
* @brief Cự ly tới đường thẳng vô hạn dạng cực (@p angle, @p radius) dọc tia @p bearing.
|
|
* @return kInf khi tia không bao giờ cắt đường đó.
|
|
*/
|
|
double rangeToLine(double bearing, double angle, double radius)
|
|
{
|
|
const double denom = std::cos(bearing - angle);
|
|
if (denom <= 1e-9)
|
|
{
|
|
return kInf;
|
|
}
|
|
return radius / denom;
|
|
}
|
|
|
|
/// @brief Scan nhìn thẳng vào một BỨC TƯỜNG phẳng cách @p radius, pháp tuyến ở @p angle.
|
|
std::vector<double> wallScan(const ScanGeometry& g, double radius, double angle = 0.0)
|
|
{
|
|
std::vector<double> ranges(g.size);
|
|
for (std::size_t i = 0; i < g.size; ++i)
|
|
{
|
|
ranges[i] = rangeToLine(bearingOf(g, i), angle, radius);
|
|
}
|
|
return ranges;
|
|
}
|
|
|
|
/**
|
|
* @brief Scan nhìn vào một tấm chữ V — đúng hình của tấm dẫn hướng ở trạm sạc.
|
|
*
|
|
* Hai cánh gặp nhau tại đỉnh trên trục x, cách cảm biến @p apex_x, mỗi cánh nghiêng @p half_angle
|
|
* so với trục y. Tia nào không trúng cánh nào thì trả kInf, y như tia bay ra khoảng trống.
|
|
*/
|
|
std::vector<double> vPlateScan(const ScanGeometry& g, double apex_x, double half_angle,
|
|
double wing_length)
|
|
{
|
|
std::vector<double> ranges(g.size, kInf);
|
|
|
|
// Hai đầu cánh, đối xứng qua trục x.
|
|
const double tip_x = apex_x + wing_length * std::sin(half_angle);
|
|
const double tip_y = wing_length * std::cos(half_angle);
|
|
|
|
for (std::size_t i = 0; i < g.size; ++i)
|
|
{
|
|
const double bearing = bearingOf(g, i);
|
|
const double dx = std::cos(bearing);
|
|
const double dy = std::sin(bearing);
|
|
|
|
// Cắt tia với hai đoạn (apex -> tip) và (apex -> tip đối xứng); lấy điểm gần nhất.
|
|
for (const double side : { 1.0, -1.0 })
|
|
{
|
|
const double ax = apex_x;
|
|
const double ay = 0.0;
|
|
const double bx = tip_x;
|
|
const double by = side * tip_y;
|
|
|
|
// Giải t*d = a + u*(b-a), u thuộc [0,1], t > 0.
|
|
const double ex = bx - ax;
|
|
const double ey = by - ay;
|
|
const double det = dx * (-ey) - dy * (-ex);
|
|
if (std::fabs(det) < 1e-12)
|
|
{
|
|
continue;
|
|
}
|
|
const double t = (ax * (-ey) - ay * (-ex)) / det;
|
|
const double u = (dx * ay - dy * ax) / det;
|
|
if (t > 0.0 && u >= 0.0 && u <= 1.0 && t < ranges[i])
|
|
{
|
|
ranges[i] = t;
|
|
}
|
|
}
|
|
}
|
|
|
|
return ranges;
|
|
}
|
|
|
|
LineExtractionParams tightParams()
|
|
{
|
|
LineExtractionParams p;
|
|
p.min_split_dist = 0.02; // [m]
|
|
p.max_line_gap = 0.10; // [m]
|
|
p.min_line_length = 0.05; // [m]
|
|
p.min_line_points = 5;
|
|
p.outlier_dist = 0.10; // [m]
|
|
p.min_range = 0.05; // [m]
|
|
p.max_range = 20.0; // [m]
|
|
return p;
|
|
}
|
|
|
|
/// @brief Extractor đã cấu hình, để test không lặp lại bốn dòng giống nhau.
|
|
class Rig
|
|
{
|
|
public:
|
|
explicit Rig(const LineExtractionParams& params = tightParams())
|
|
{
|
|
ok_ = extractor_.configure(params, error_);
|
|
}
|
|
|
|
bool run(const ScanGeometry& g, const std::vector<double>& ranges)
|
|
{
|
|
return extractor_.extract(g, ranges, lines_, error_);
|
|
}
|
|
|
|
bool ok_ = false;
|
|
std::string error_;
|
|
LineExtractor extractor_;
|
|
std::vector<Line> lines_;
|
|
};
|
|
|
|
// ================================================================================================
|
|
// 1. Hình cơ bản
|
|
// ================================================================================================
|
|
|
|
TEST(LineExtractor, FindsOneLineInAFlatWall)
|
|
{
|
|
Rig rig;
|
|
ASSERT_TRUE(rig.ok_) << rig.error_;
|
|
|
|
const ScanGeometry g = geometry(180, -0.6, 0.6);
|
|
ASSERT_TRUE(rig.run(g, wallScan(g, 2.0))) << rig.error_;
|
|
|
|
ASSERT_EQ(rig.lines_.size(), 1U);
|
|
// Tường dựng ở radius 2.0, pháp tuyến 0. Khớp phải trả lại đúng hai con số đó.
|
|
EXPECT_NEAR(rig.lines_[0].getRadius(), 2.0, 1e-3);
|
|
EXPECT_NEAR(rig.lines_[0].getAngle(), 0.0, 1e-3);
|
|
EXPECT_GT(rig.lines_[0].numPoints(), 100U);
|
|
}
|
|
|
|
TEST(LineExtractor, RecoversTheAngleOfATiltedWall)
|
|
{
|
|
Rig rig;
|
|
ASSERT_TRUE(rig.ok_) << rig.error_;
|
|
|
|
const ScanGeometry g = geometry(180, -0.6, 0.6);
|
|
ASSERT_TRUE(rig.run(g, wallScan(g, 1.5, 0.3))) << rig.error_;
|
|
|
|
ASSERT_EQ(rig.lines_.size(), 1U);
|
|
EXPECT_NEAR(rig.lines_[0].getRadius(), 1.5, 1e-3);
|
|
EXPECT_NEAR(rig.lines_[0].getAngle(), 0.3, 1e-3);
|
|
}
|
|
|
|
TEST(LineExtractor, SplitsAVPlateIntoTwoWings)
|
|
{
|
|
Rig rig;
|
|
ASSERT_TRUE(rig.ok_) << rig.error_;
|
|
|
|
// Đúng hình tấm dẫn hướng: đỉnh cách 1.2 m, hai cánh mở 45 độ, mỗi cánh 0.30 m.
|
|
const ScanGeometry g = geometry(400, -0.5, 0.5);
|
|
ASSERT_TRUE(rig.run(g, vPlateScan(g, 1.2, M_PI / 4.0, 0.30))) << rig.error_;
|
|
|
|
// Hai cánh phải RA HAI ĐOẠN. Ra một đoạn nghĩa là bước gộp đã nuốt mất góc kẹp, và bộ dò V
|
|
// không còn gì để đo.
|
|
ASSERT_EQ(rig.lines_.size(), 2U) << "V plate must not collapse into a single segment";
|
|
|
|
// Góc kẹp giữa hai pháp tuyến = góc mở của tấm. Hai cánh nghiêng +-45 độ so với trục y nên hai
|
|
// pháp tuyến cách nhau 90 độ.
|
|
const double delta =
|
|
std::fabs(robot_line_extraction::piToPi(rig.lines_[0].getAngle() - rig.lines_[1].getAngle()));
|
|
EXPECT_NEAR(delta, M_PI / 2.0, 0.10);
|
|
|
|
for (const Line& line : rig.lines_)
|
|
{
|
|
EXPECT_NEAR(line.length(), 0.30, 0.05) << "wing length must survive the fit";
|
|
}
|
|
}
|
|
|
|
TEST(LineExtractor, SplitsAtAGapEvenWhenBothSidesAreCollinear)
|
|
{
|
|
Rig rig;
|
|
ASSERT_TRUE(rig.ok_) << rig.error_;
|
|
|
|
const ScanGeometry g = geometry(300, -0.6, 0.6);
|
|
std::vector<double> ranges = wallScan(g, 2.0);
|
|
|
|
// Đục một lỗ giữa tường: hai nửa vẫn thẳng hàng hoàn hảo, nhưng chúng KHÔNG phải một bề mặt
|
|
// liền. Chỉ độ tản không phân biệt được ca này — phải là luật khe hở.
|
|
for (std::size_t i = 140; i < 170; ++i)
|
|
{
|
|
ranges[i] = kInf;
|
|
}
|
|
|
|
ASSERT_TRUE(rig.run(g, ranges)) << rig.error_;
|
|
EXPECT_EQ(rig.lines_.size(), 2U);
|
|
}
|
|
|
|
// ================================================================================================
|
|
// 2. Ba lỗi của bản gốc
|
|
// ================================================================================================
|
|
|
|
TEST(LineExtractor, ASplitLosesNoPoint)
|
|
{
|
|
Rig rig;
|
|
ASSERT_TRUE(rig.ok_) << rig.error_;
|
|
|
|
const ScanGeometry g = geometry(400, -0.5, 0.5);
|
|
ASSERT_TRUE(rig.run(g, vPlateScan(g, 1.2, M_PI / 4.0, 0.30))) << rig.error_;
|
|
ASSERT_EQ(rig.lines_.size(), 2U);
|
|
|
|
// Bản gốc cắt bằng `&indices[i_split-1]` và `&indices.back()`, làm rơi một điểm ở MỖI nửa tại
|
|
// MỖI lần tách. Đỉnh V thuộc về cả hai cánh, nên tổng số điểm đỡ phải bằng số tia trúng tấm
|
|
// CỘNG một (đỉnh được đếm hai lần), không được ít hơn.
|
|
const std::vector<double> ranges = vPlateScan(g, 1.2, M_PI / 4.0, 0.30);
|
|
std::size_t hits = 0;
|
|
for (const double r : ranges)
|
|
{
|
|
if (std::isfinite(r))
|
|
{
|
|
++hits;
|
|
}
|
|
}
|
|
|
|
const std::size_t support = rig.lines_[0].numPoints() + rig.lines_[1].numPoints();
|
|
EXPECT_EQ(support, hits + 1) << "split dropped points: " << hits << " hits but " << support
|
|
<< " supporting rays";
|
|
}
|
|
|
|
TEST(LineExtractor, AMergedLineReportsItsRealSupport)
|
|
{
|
|
Rig rig;
|
|
ASSERT_TRUE(rig.ok_) << rig.error_;
|
|
|
|
const ScanGeometry g = geometry(300, -0.6, 0.6);
|
|
std::vector<double> ranges = wallScan(g, 2.0);
|
|
|
|
// Một vết lồi nhỏ giữa tường, đủ để tách làm đôi nhưng hai nửa vẫn là một mặt phẳng — chính là
|
|
// ca mà bước gộp sinh ra để nối lại.
|
|
ranges[150] += 0.03;
|
|
|
|
ASSERT_TRUE(rig.run(g, ranges)) << rig.error_;
|
|
ASSERT_FALSE(rig.lines_.empty());
|
|
|
|
// Bản gốc gọi resize() rồi insert(end()), để lại nửa đầu vector toàn số 0: đoạn đã gộp báo gấp
|
|
// đôi số điểm thật, và mọi chỉ số ở nửa đầu đều trỏ về tia 0.
|
|
for (const Line& line : rig.lines_)
|
|
{
|
|
EXPECT_LE(line.numPoints(), g.size) << "merged support exceeds the whole scan";
|
|
|
|
const std::vector<unsigned int>& indices = line.getIndices();
|
|
ASSERT_FALSE(indices.empty());
|
|
const std::size_t zeros = static_cast<std::size_t>(std::count(indices.begin(), indices.end(), 0U));
|
|
EXPECT_LE(zeros, 1U) << "merged indices are zero-filled";
|
|
}
|
|
}
|
|
|
|
TEST(LineExtractor, TheLeastSquaresLoopIsBounded)
|
|
{
|
|
// Ngưỡng hội tụ đặt cực nhỏ so với độ chính xác của double: bản gốc lặp vô hạn ở đây, tức treo
|
|
// luôn control thread. Bản này bỏ đoạn không hội tụ và ĐI TIẾP.
|
|
LineExtractionParams params = tightParams();
|
|
params.least_sq_angle_thresh = 1e-300;
|
|
params.least_sq_radius_thresh = 1e-300;
|
|
|
|
Rig rig(params);
|
|
ASSERT_TRUE(rig.ok_) << rig.error_;
|
|
|
|
const ScanGeometry g = geometry(180, -0.6, 0.6);
|
|
ASSERT_TRUE(rig.run(g, wallScan(g, 2.0))) << rig.error_;
|
|
// Trả về được là đã đủ: test này chết bằng cách TREO, không phải bằng cách fail.
|
|
SUCCEED();
|
|
}
|
|
|
|
// ================================================================================================
|
|
// 3. Đầu vào rác
|
|
// ================================================================================================
|
|
|
|
TEST(LineExtractor, AnEmptySceneYieldsNoLineAndNoError)
|
|
{
|
|
Rig rig;
|
|
ASSERT_TRUE(rig.ok_) << rig.error_;
|
|
|
|
const ScanGeometry g = geometry(180);
|
|
// Không có gì trong tầm. Đây là câu trả lời bình thường, không phải lỗi — phòng trống thì trông
|
|
// đúng như vậy.
|
|
ASSERT_TRUE(rig.run(g, std::vector<double>(g.size, kInf))) << rig.error_;
|
|
EXPECT_TRUE(rig.lines_.empty());
|
|
}
|
|
|
|
TEST(LineExtractor, NaNRangesAreDroppedWithoutSpecialCasing)
|
|
{
|
|
Rig rig;
|
|
ASSERT_TRUE(rig.ok_) << rig.error_;
|
|
|
|
const ScanGeometry g = geometry(180);
|
|
ASSERT_TRUE(rig.run(g, std::vector<double>(g.size, kNaN))) << rig.error_;
|
|
EXPECT_TRUE(rig.lines_.empty());
|
|
}
|
|
|
|
TEST(LineExtractor, AWallStillReadsCorrectlyThroughScatteredNaN)
|
|
{
|
|
Rig rig;
|
|
ASSERT_TRUE(rig.ok_) << rig.error_;
|
|
|
|
const ScanGeometry g = geometry(300, -0.6, 0.6);
|
|
std::vector<double> ranges = wallScan(g, 2.0);
|
|
|
|
// Tia hụt rải rác, đúng như cảm biến thật gặp bề mặt hấp thụ. NaN trượt cả hai phép so trong
|
|
// bộ lọc cự ly nên rơi ra ngay, không cần ca đặc biệt ở đâu khác.
|
|
for (std::size_t i = 20; i < g.size; i += 37)
|
|
{
|
|
ranges[i] = kNaN;
|
|
}
|
|
|
|
ASSERT_TRUE(rig.run(g, ranges)) << rig.error_;
|
|
ASSERT_FALSE(rig.lines_.empty());
|
|
EXPECT_NEAR(rig.lines_[0].getRadius(), 2.0, 1e-2);
|
|
}
|
|
|
|
TEST(LineExtractor, RefusesRangesThatDoNotMatchTheGeometry)
|
|
{
|
|
Rig rig;
|
|
ASSERT_TRUE(rig.ok_) << rig.error_;
|
|
|
|
const ScanGeometry g = geometry(180);
|
|
// Sai kích thước là lỗi lập trình, không phải cảnh quan — nói ra thay vì đọc ngoài mảng.
|
|
EXPECT_FALSE(rig.run(g, std::vector<double>(10, 1.0)));
|
|
EXPECT_NE(rig.error_.find("does not match"), std::string::npos);
|
|
}
|
|
|
|
TEST(LineExtractor, RefusesAGeometryItCannotUse)
|
|
{
|
|
Rig rig;
|
|
ASSERT_TRUE(rig.ok_) << rig.error_;
|
|
|
|
ScanGeometry zero_step = geometry(180);
|
|
zero_step.angle_increment = 0.0; // mọi tia chung một hướng, scan sụp thành một điểm
|
|
EXPECT_FALSE(rig.run(zero_step, std::vector<double>(180, 1.0)));
|
|
|
|
ScanGeometry tiny;
|
|
tiny.angle_min = 0.0;
|
|
tiny.angle_increment = 0.01;
|
|
tiny.size = 1;
|
|
EXPECT_FALSE(rig.run(tiny, std::vector<double>(1, 1.0)));
|
|
}
|
|
|
|
TEST(LineExtractor, RefusesParametersThatCanNeverFit)
|
|
{
|
|
LineExtractor extractor;
|
|
std::string error;
|
|
|
|
LineExtractionParams zero_var = tightParams();
|
|
zero_var.range_var = 0.0;
|
|
// Phương sai 0 = tin tuyệt đối một phép đo; số gia bình phương tối thiểu ra vô cực ngay vòng đầu.
|
|
EXPECT_FALSE(extractor.configure(zero_var, error));
|
|
EXPECT_NE(error.find("range_var"), std::string::npos);
|
|
|
|
LineExtractionParams zero_split = tightParams();
|
|
zero_split.min_split_dist = 0.0;
|
|
// Tách ở mọi điểm thì không đoạn nào sống sót thành đường.
|
|
EXPECT_FALSE(extractor.configure(zero_split, error));
|
|
EXPECT_NE(error.find("min_split_dist"), std::string::npos);
|
|
|
|
LineExtractionParams two_points = tightParams();
|
|
two_points.min_line_points = 2;
|
|
// Hai điểm xác định đường chính xác nên hiệp phương sai của chúng vô nghĩa, mà bước gộp lại
|
|
// quyết định BẰNG hiệp phương sai.
|
|
EXPECT_FALSE(extractor.configure(two_points, error));
|
|
EXPECT_NE(error.find("min_line_points"), std::string::npos);
|
|
|
|
LineExtractionParams range_swap = tightParams();
|
|
range_swap.max_range = range_swap.min_range;
|
|
EXPECT_FALSE(extractor.configure(range_swap, error));
|
|
|
|
// Bộ tham số hỏng bị từ chối thì bộ cũ phải còn nguyên.
|
|
LineExtractionParams good = tightParams();
|
|
ASSERT_TRUE(extractor.configure(good, error)) << error;
|
|
EXPECT_DOUBLE_EQ(extractor.params().range_var, good.range_var);
|
|
}
|
|
|
|
// ================================================================================================
|
|
// 4. Cache bố cục scan
|
|
// ================================================================================================
|
|
|
|
TEST(LineExtractor, TheSameGeometryTwiceGivesTheSameAnswer)
|
|
{
|
|
Rig rig;
|
|
ASSERT_TRUE(rig.ok_) << rig.error_;
|
|
|
|
const ScanGeometry g = geometry(180, -0.6, 0.6);
|
|
ASSERT_TRUE(rig.run(g, wallScan(g, 2.0))) << rig.error_;
|
|
ASSERT_EQ(rig.lines_.size(), 1U);
|
|
const double first_radius = rig.lines_[0].getRadius();
|
|
|
|
// Lần hai dùng lại bảng bearing đã cache. Kết quả phải khớp từng bit — lệch nghĩa là cache mang
|
|
// trạng thái của lần chạy trước sang.
|
|
ASSERT_TRUE(rig.run(g, wallScan(g, 2.0))) << rig.error_;
|
|
ASSERT_EQ(rig.lines_.size(), 1U);
|
|
EXPECT_DOUBLE_EQ(rig.lines_[0].getRadius(), first_radius);
|
|
}
|
|
|
|
TEST(LineExtractor, ChangingTheGeometryRebuildsTheBearings)
|
|
{
|
|
Rig rig;
|
|
ASSERT_TRUE(rig.ok_) << rig.error_;
|
|
|
|
const ScanGeometry coarse = geometry(180, -0.6, 0.6);
|
|
ASSERT_TRUE(rig.run(coarse, wallScan(coarse, 2.0))) << rig.error_;
|
|
ASSERT_EQ(rig.lines_.size(), 1U);
|
|
|
|
// Bố cục khác hẳn. Giữ bảng cũ là mọi tia bị gán sai hướng, và tường 2 m ra một đường bịa.
|
|
const ScanGeometry fine = geometry(400, -1.0, 1.0);
|
|
ASSERT_TRUE(rig.run(fine, wallScan(fine, 2.0))) << rig.error_;
|
|
ASSERT_EQ(rig.lines_.size(), 1U);
|
|
EXPECT_NEAR(rig.lines_[0].getRadius(), 2.0, 1e-3);
|
|
EXPECT_NEAR(rig.lines_[0].getAngle(), 0.0, 1e-3);
|
|
}
|
|
|
|
} // namespace
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
testing::InitGoogleTest(&argc, argv);
|
|
return RUN_ALL_TESTS();
|
|
}
|