首页> 外文会议>ACM symposium on Applied Computing >Applying test-driven code search to the reuse of auxiliary functionality
【24h】

Applying test-driven code search to the reuse of auxiliary functionality

机译:将测试驱动的代码搜索应用于重用辅助功能

获取原文

摘要

Software developers spend considerable effort implementing auxiliary functionality used by the main features of a system (e.g. compressing/decompressing files, encryption/decription of data, scaling/rotating images). With the increasing amount of open source code available on the Internet, time and effort can be saved by reusing these utilities through informal practices of code search and reuse. However, when this type of reuse is performed in an ad hoc manner, it can be tedious and error-prone: code results have to be manually inspected and extracted into the workspace. In this paper we introduce the use of test cases as an interface for automating code search and reuse and evaluate its applicability and performance in the reuse of auxiliary functionality. We call our approach Test-Driven Code Search (TDCS). Test cases serve two purposes: (1) they define the behavior of the desired functionality to be searched; and (2) they test the matching results for suitability in the local context. We present CodeGenie, an Eclipse plugin that performs TDCS using a code search engine called Sourcerer. Our evaluation presents evidence of the applicability and good performance of TDCS in the reuse of auxiliary functionality.
机译:软件开发人员花费相当大的努力实现系统的主要特征所使用的辅助功能(例如,压缩/解压缩文件,数据加密/解释数据,缩放/旋转图像)。随着互联网上可用的开源代码的越来越多,通过通过代码搜索和重用的非正式实践重用这些实用程序,可以保存时间和精力。但是,当以临时方式执行此类重用时,它可能是乏味的并且容易出错:必须手动检查代码结果并将其提取到工作空间中。在本文中,我们将使用测试用例推出作为自动化搜索和重用的接口,并评估其在重用辅助功能中的适用性和性能。我们称我们的方法测试驱动代码搜索(TDC)。测试用例为两个目的服务:(1)它们定义要搜索所需功能的行为; (2)他们在本地背景下测试匹配结果以获得适用性。我们提供Codegenie,一个Eclipse插件,使用名为Solcerer的代码搜索引擎执行TDC。我们的评估呈现了在重用辅助功能中的TDC的适用性和良好性能的证据。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号