🎉 init(repo): first git commit

This commit is contained in:
yangwei
2022-07-05 19:48:31 +08:00
commit 4ca8c002ee
10 changed files with 1471 additions and 0 deletions

14
test/CMakeLists.txt Normal file
View File

@@ -0,0 +1,14 @@
# 开启测试
add_executable(gtest_vapp
gtest_main.cc
)
target_link_libraries(
gtest_vapp
gtest_main
)
include(GoogleTest)
gtest_discover_tests(gtest_vapp)

14
test/gtest_main.cc Normal file
View File

@@ -0,0 +1,14 @@
#include <gtest/gtest.h>
TEST(EQ_Test, Always_True) {
EXPECT_EQ(1, 1);
}
int main(int argc, char ** argv)
{
int ret=0;
::testing::InitGoogleTest(&argc, argv);
ret=RUN_ALL_TESTS();
return ret;
}