我得到了以下类型的白盒测试列表:
Control flow testing
Data flow testing
Branch testing
Statement coverage
Decision coverage
Modified condition/decision coverage
Prime path testing
Path testing
有人可以通过代码给我举例说明 Prime 路径测试和路径测试之间有什么区别吗?
最佳答案
素数路径测试是路径测试的一种特殊情况,其中:“如果 (p) 是最大简单路径,即 (p) 无法在不失去简单性的情况下扩展,则路径 (p) 是素数。”
这是一个很好的解释: http://studylib.net/doc/5705864/prime-path-coverage
关于unit-testing - Prime 路径测试和路径测试有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45834138/