Software-testing-dictionary-condition-coverage-testing
提供:Dev Guides
条件カバレッジテスト
条件カバレッジテストとは何ですか?
条件カバレッジは、ブール式のそれぞれがTRUEとFALSEの両方に評価された述語カバレッジとも呼ばれます。
例
if ((A || B) && C)
{
<< Few Statements >>
}
else
{
<< Few Statements >>
}
結果
上記の例の完全な条件カバレッジ基準を確保するには、A、B、およびCを「true」および「false」に対して少なくとも1回評価する必要があります。
So, in our example, the 3 following tests would be sufficient for 100% Condition coverage testing.
A = true | B = not eval | C = false
A = false | B = true | C = true
A = false | B = false | C = not eval