首页> 外国专利> 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.
机译:提出了一种使用综合测试套件来识别程序代码的可行重构的系统和方法。维护程序代码,包括根据程序语言编写的程序语句,并定义在转换为机器代码后执行的操作。指定了与程序代码关联的测试套件,该套件包括一个或多个其他程序操作,以确定在操作执行期间令人满意地产生预期结果。通过对照一组重构规则评估一个或多个程序语句并根据至少一个重构规则重构程序语句,将多个重构推测性地应用于程序代码。在程序语句的每次重组之后,针对程序代码执行测试套件,并确定通过测试套件的每个重构。

著录项

  • 公开/公告号US7669188B2

    专利类型

  • 公开/公告日2010-02-23

    原文格式PDF

  • 申请/专利权人 ERIC STEPHEN NICKELL;IAN E. SMITH;

    申请/专利号US20040003254

  • 发明设计人 ERIC STEPHEN NICKELL;IAN E. SMITH;

    申请日2004-12-03

  • 分类号G06F9/44;G06F9/45;G06F11/00;

  • 国家 US

  • 入库时间 2022-08-21 18:48:33

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号