arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2004.04211cs.SE
收藏

空类型突变运算符有助于防止空类型错误吗?

Do Null-Type Mutation Operators Help Prevent Null-Type Faults?

Ali Parsai, Serge Demeyer

摘要:

空类型是Java程序中的一个主要错误源,它的过度使用对软件维护有严重影响。然而传统的变异测试算子在默认情况下不能覆盖空类型的错误,因此不能作为一种预防措施。我们通过设计四个新的突变算子来解决这个问题,这些算子明确地模拟了空型故障。我们展示了这些变异算子是如何能够揭示缺失的测试,我们证明了这些变异算子在实践中是有用的。对于后者,我们分析了15个开源项目的测试套件,以描述通过这些运营商,以加强测试套件的权衡。

英文摘要:

The null-type is a major source of faults in Java programs, and its overuse has a severe impact on software maintenance. Unfortunately traditional mutation testing operators do not cover null-type faults by default, hence cannot be used as a preventive measure. We address this problem by designing four new mutation operators which model null-type faults explicitly. We show how these mutation operators are capable of revealing the missing tests, and we demonstrate that these mutation operators are useful in practice. For the latter, we analyze the test suites of 15 open-source projects to describe the trade-offs related to the adoption of these operators to strengthen the test suite.

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

↑