除此之外,测试的分支建模将导致由于完成不同功能的测试具有相似的名称所带来的混乱。
Furthermore, the branching model for tests results in similarly named tests that have different functionality to the confusion of everyone.
代码覆盖工具可报告测试覆盖率——以行覆盖或分支覆盖形式表示——它表示测试运行时所涉及的代码量。
A code coverage tool reports test coverage — either in the form of line or branch coverage — that represents the amount of code that is being touched when a test is run.
条件寄存器(Condition Register, CR)是反映特定操作结果并提供测试(及分支)机制的32位寄存器。
The Condition register (CR) is a 32-bit register that reflects the result of certain operations and provides a mechanism for testing (and branching).
First one, when I write a piece of code, especially code that has branches in it, when I design test cases for that piece of code, I should try and have a specific test case for each possible path through the code.
第一点,当我们写代码的时候,尤其是一些含有分支语句的代码的时候,当我为这些代码,设计测试用例的时候,我应该为每一个可能的程序路径,都设计一个特别的用例。
应用推荐