Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我使用 Google Test 调用函数时,是否有任何限制,例如我不能使用下划线或任何其他特殊字符?
不,你可以调用任何你想要的函数。Google Test 不会检测您调用的函数。
您不应在测试名称中使用任何前导或尾随下划线,因为这些下划线可能会被某些 Google Test 的宏与其他名称组合。