🛰️航天仿真算法库 SpaceAST 0.3.1
载入中...
搜索中...
未找到
AstTestMacro.h 文件参考
#include "AstGlobal.h"
#include <cmath>
#include <cstdio>
#include <iostream>
#include "AstTest/TestConfig.hpp"
#include "AstUtil/Environment.hpp"
#include "AstTest/TestFramework.hpp"

浏览该文件的源代码.

宏定义

#define GTEST_MAIN()
 

详细描述


~

作者
axel
日期
15.11.2025

ast项目(https://github.com/space-ast/ast) 本项目基于 Apache 2.0 开源许可证分发。 您可在遵守许可证条款的前提下使用、修改和分发本软件。 许可证全文请见:

http://www.apache.org/licenses/LICENSE-2.0

重要须知: 软件按“现有状态”提供,无任何明示或暗示的担保条件。 除非法律要求或书面同意,作者与贡献者不承担任何责任。 使用本软件所产生的风险,需由您自行承担。

宏定义说明

◆ GTEST_MAIN

#define GTEST_MAIN ( )
值:
int main(int argc, char **argv) { \
std::printf("Running main() from %s\n", __FILE__); \
testing::InitGoogleTest(&argc, argv); \
return RUN_ALL_TESTS(); \
}
int RUN_ALL_TESTS()
运行全部已注册测试(返回失败数量)。
定义 TestFramework.hpp:460