为什么GoogleTest会使用参数来计算参数?
是什么原因 testing::InitGoogleTest(&argc, argv);
(我的意思是:据我所知,这是一个输入参数并没有任何区别 是否提供了价值或地址)
答案 0 :(得分:3)
请参阅comments。
// Initializes Google Test. This must be called before calling // RUN_ALL_TESTS(). In particular, it parses a command line for the // flags that Google Test recognizes. Whenever a Google Test flag is // seen, it is removed from argv, and *argc is decremented.