文件名称:example:googletest快速入门示例
文件大小:8KB
文件格式:ZIP
更新时间:2024-04-26 12:07:43
C++
安装基本工具 lcov 1.15 +分支过滤器 $ sudo apt autoremove lcov $ sudo apt install libjson-perl libdatetime-perl libdatetime-format-w3cdtf-perl $ git clone https://github.com/linux-test-project/lcov.git -b v1.15 $ cd lcov $ git fetch origin pull/86/head:branch-filter $ git checkout branch-filter $ sudo make install $ cp /usr/local/etc/lcovrc ~ /.lcovrc $ vi ~ /.lcovrc genhtml_legend = 1 geninfo_no_exception_br
【文件预览】:
example-main
----src()
--------main.cpp(101B)
--------sut.cpp(186B)
----README.md(2KB)
----cmake()
--------CMakeLists_cross.txt(2KB)
--------CMakeLists_All.txt(3KB)
--------CMakeLists_MSVC.txt(1KB)
--------aarch64-linux-gnu-gcc.cmake(983B)
--------CMakeLists_GNU.txt(1KB)
----include()
--------doc.h(147B)
--------sut.h(180B)
----test()
--------gtest_ex3.cpp(570B)
--------gtest_ex1.cpp(684B)
--------gtest_ex2.cpp(447B)
----CMakeLists.txt(881B)