我看到该功能的文档似乎非常重要,因为它在Google测试概述功能中并详细介绍:https: //github.com/google/googletest/blob/master/googletest/docs/advanced.md#death-tests
它们看起来像标准,assert()但它们是Google Test的一部分,因此是一个xUnit测试框架.因此,我想知道使用这些死亡测试的真正用途或优点是什么.
assert()
c++ testing googletest
c++ ×1
googletest ×1
testing ×1