arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.09360cs.SE
收藏

Doc2OracLL:探究文档对基于大语言模型的测试预言生成的影响

Doc2OracLL: Investigating the Impact of Documentation on LLM-based Test Oracle Generation

Soneya Binta Hossain, Raygan Taylor, Matthew Dwyer

AI总结:

本研究针对现有研究未深入探究Javadoc注释结合其他上下文对测试预言生成的影响等不足,深入调研Javadoc注释在基于大语言模型的测试预言生成中的作用。

摘要:

代码文档是软件开发的关键要素,是人类理解与机器可读代码之间的桥梁。除了帮助开发者理解和维护代码,文档在自动化各类软件工程任务(如测试预言生成TOG)中也发挥着关键作用。在Java中,Javadoc注释提供了直接嵌入源代码的结构化自然语言文档,通常详细说明功能、用法、参数、返回值和异常。尽管已有研究在测试预言生成(TOG)中使用了Javadoc注释,但尚未深入探究其与其他上下文信息结合时的影响,也未明确生成正确且健壮的测试预言最相关的组成部分,或是理解其在检测真实漏洞中的作用。本研究深入探究了Javadoc注释对TOG的影响。

英文摘要:

Code documentation is a critical aspect of software development, serving as a bridge between human understanding and machine-readable code. Beyond assisting developers in understanding and maintaining code, documentation also plays a critical role in automating various software engineering tasks, such as test oracle generation (TOG). In Java, Javadoc comments provide structured, natural language documentation embedded directly in the source code, typically detailing functionality, usage, parameters, return values, and exceptions. While prior research has utilized Javadoc comments in test oracle generation (TOG), there has not been a thorough investigation into their impact when combined with other contextual information, nor into identifying the most relevant components for generating correct and strong test oracles, or understanding their role in detecting real bugs. In this study, we dive deep into investigating the impact of Javadoc comments on TOG.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑