Branch-Coverage Testability Transformation for Unstructured Programs
Branch-Coverage Testability Transformation for Unstructured Programs
复制标题
DOI:
10.1093/comjnl/bxh093
复制
发表时间:
2005-07
期刊:
影响因子:
--
通讯作者:
R. Hierons;M. Harman;C. Fox
中科院分区:
文献类型:
--
作者:
R. Hierons;M. Harman;C. Fox
Test data generation by hand is a tedious, expensive and error-prone activity, yet testing is a vital part of the development process. Several techniques have been proposed to automate the generation of test data, but all of these are hindered by the presence of unstructured control flow. This paper addresses the problem using testability transformation. Testability transformation does not preserve the traditional meaning of the program, rather it deals with preserving test-adequate sets of input data. This requires new equivalence relations which, in turn, entail novel proof obligations. The paper illustrates this using the branch coverage adequacy criterion and develops a branch adequacy equivalence relation and a testability transformation for restructuring. It then presents a proof that the transformation preserves branch adequacy.