首页>
外国专利>
System and method for identifying viable refactorings of program code using a comprehensive test suite
System and method for identifying viable refactorings of program code using a comprehensive test suite
展开▼
机译:使用综合测试套件识别程序代码可行重构的系统和方法
展开▼
页面导航
摘要
著录项
相似文献
摘要
A system and method for identifying viable refactorings of program code using a comprehensive test suite is presented. Program code is maintained, including program statements written in accordance with a programming language and defining operations executed following transformation into machine code. A test suite associated with the program code is specified and includes one or more additional program operations to determine satisfactory generation of expected results during the operations execution. A plurality of refactorings are speculatively applied to the program code by evaluating one or more of the program statements against a set of refactoring rules and restructuring the program statements pursuant to at least one refactoring rule. The test suite is executed against the program code following each restructuring of the program statements and each refactoring that passes the test suite is determined.
展开▼