跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:2104.01514 (cs)
[提交于 2021年4月6日]

标题:Assert Use and Defectiveness in Industrial Code

作者:Steve Counsell, Tracy Hall, Thomas Shippey, David Bowes, Amjed Tahir, Stephen MacDonell
查看论文《Assert Use and Defectiveness in Industrial Code》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:The use of asserts in code has received increasing attention in the software engineering community in the past few years, even though it has been a recognized programming construct for many decades. A previous empirical study by Casalnuovo showed that methods containing asserts had fewer defects than those that did not. In this paper, we analyze the test classes of two industrial telecom Java systems to lend support to, or refute that finding. We also analyze the physical position of asserts in methods to determine if there is a relationship between assert placement and method defect-proneness. Finally, we explore the role of test method size and the relationship it has with asserts. In terms of the previous study by Casalnuovo, we found only limited evidence to support the earlier results. We did however find that defective methods with one assert tended to be located at significantly lower levels of the class position-wise than non-defective methods. Finally, method size seemed to correlate strongly with asserts, but surprisingly less so when we excluded methods with just one assert. The work described highlights the need for more studies into this aspect of code, one which has strong links with code comprehension.
评论: Conference paper, 5 pages, 2 figures, 3 tables
主题: 软件工程 (cs.SE)
引用方式: arXiv:2104.01514 [cs.SE]
  (或者 arXiv:2104.01514v1 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2104.01514
期刊参考: Proceedings of the IEEE International Symposium on Software Reliability Engineering Workshops (ISSREW2017). Toulouse, France, IEEE, pp.20-23
相关 DOI: https://doi.org/10.1109/ISSREW.2017.20.

提交历史

来自:Stephen MacDonell
[v1] 2021年4月6日 星期二 00:00:00 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.SE
< 上一篇   |   下一篇 >
最新 | 近期 | 2021-04
切换浏览方式为:
cs

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站