GoogleTest示例代码 博客链接:https://zzy979.github.io/posts/googletest-tutorial/ 运行测试: cmake -S . -B build cmake --build build cd build && ctest