首页> 外文会议>IEEE/ACM International Conference on Software Engineering: Companion >Poster: Grafter: Transplantation and Differential Testing for Clones
【24h】

Poster: Grafter: Transplantation and Differential Testing for Clones

机译:海报:磨碎器:克隆的移植和差异测试

获取原文

摘要

Code clones are common in software. When applying similar edits to clones, developers often find it difficult to examine the runtime behavior of clones. The problem is exacerbated when some clones are tested, while their counterparts are not. To reuse tests for similar but not identical clones, Grafter transplants one clone to its counterpart by (1) identifying variations in identifier names, types, and method call targets, (2) resolving compilation errors caused by such variations through code transformation, and (3) inserting stub code to transfer input data and intermediate output values for examination. To help developers examine behavioral differences between clones, Grafter supports fine-grained differential testing at both the test outcome level and the internal program state level. Our evaluation shows that Grafter can successfully reuse tests and detect behavioral differences. The tool is available for download at http://web.cs.ucla.edu/~tianyi.zhang/grafter.html and the demo video is available at https://youtu.be/1iqAeuM8s3U.
机译:代码克隆在软​​件中很常见。在将类似的编辑应用于克隆时,开发人员通常会发现难以检查克隆的运行时行为。当测试某些克隆时,问题会加剧,而他们的对应物不是。为了重用类似但不是相同的克隆的测试,Grofter将一个克隆移植到其对应物(1)识别标识符名称,类型和方法调用目标的变体,(2)通过代码转换的这种变化引起的编译错误,以及( 3)插入存根代码以转移输入数据和中间输出值进行检查。为了帮助开发人员检查克隆之间的行为差​​异,GROFTER在测试结果水平和内部程序状态级别支撑细粒度的差异测试。我们的评估表明,GROFTER可以成功地重用测试并检测行为差异。该工具可在http://web.cs.ucla.edu/~tianyi.zhang/grafter.html下载,演示视频可用于https://youtu.be/1iqaeum8s3u。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号