Is Bytecode Instrumentation as Good as Source Code Instrumentation: An Empirical Study with Industrial Tools

被引:0
|
作者
Li, Nan [1 ]
Meng, Xin [1 ]
Offutt, Jeff [1 ]
Deng, Lin [1 ]
机构
[1] George Mason Univ, Fairfax, VA 22030 USA
来源
2013 IEEE 24TH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING (ISSRE) | 2013年
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Branch coverage (BC) is a widely used test criterion that is supported by many tools. Although textbooks and the research literature agree on a standard definition for BC, tools measure BC in different ways. The general strategy is to "instrument" the program by adding statements that count how many times each branch is taken. But the details for how this is done can influence the measurement for whether a set of tests have satisfied BC. For example, the standard definition is based on program source, yet some tools instrument the bytecode to reduce computation cost. A crucial question for the validity of these tools is whether bytecode instrumentation gives results that are the same as, or at least comparable to, source code instrumentation. An answer to this question will help testers decide which tool to use. This research looked at 31 code coverage tools, finding four that support branch coverage. We chose one tool that instruments the bytecode and two that instrument the source. We acquired tests for 105 methods to discover how these three tools measure branch coverage. We then compared coverage on 64 methods, finding that the bytecode instrumentation method reports the same coverage on 49 and lower coverage on 11. We also found that each tool defined branch coverage differently, and what is called branch coverage in the bytecode instrumentation tool actually matches the standard definition for clause coverage.
引用
收藏
页码:380 / 389
页数:10
相关论文
共 50 条
  • [31] Semantic Impact and Faults in Source Code Changes: An Empirical Study
    Shao, Danhua
    Khurshid, Sarfraz
    Perry, Dewayne E.
    ASWEC 2009: 20TH AUSTRALIAN SOFTWARE ENGINEERING CONFERENCE, PROCEEDINGS, 2009, : 131 - 141
  • [32] Labeling source code with information retrieval methods: an empirical study
    De Lucia, Andrea
    Di Penta, Massimiliano
    Oliveto, Rocco
    Panichella, Annibale
    Panichella, Sebastiano
    EMPIRICAL SOFTWARE ENGINEERING, 2014, 19 (05) : 1383 - 1420
  • [33] ON THE APPLICATION OF STATIC CODE ANALYSIS TOOLS IN THE SERBIAN IT INDUSTRY: AN EMPIRICAL STUDY
    Komosar, Aleksa
    Kijanovic, Sara
    Mandic, Vladimir
    Nikolic, Danilo
    Vuckovic, Teodora
    Proceedings of the 17th IADIS International Conference Information Systems 2024, IS 2024, 2024, : 53 - 60
  • [34] An Empirical Study of User Support Tools in Open Source Software
    Raza, Arif
    Capretz, Luiz Fernando
    Basri, Shuib B.
    2019 IEEE 15TH INTERNATIONAL CONFERENCE ON CONTROL AND AUTOMATION (ICCA), 2019, : 964 - 968
  • [35] Profilometric Analysis of Periodontally Diseased Root Surfaces After Application of Different Instrumentation Tools: An In Vitro Study
    Gursoy, Hare
    Tunar, Ogul Leman
    Ince Kuka, Gizem
    Karaca, Ebru Ozkan
    Kocabas, Hazel
    Kuru, Bahar Eren
    PHOTOBIOMODULATION PHOTOMEDICINE AND LASER SURGERY, 2020, 38 (03) : 181 - 185
  • [36] Are our clone detectors good enough? An empirical study of code effects by obfuscation
    Huang, Weihao
    Meng, Guozhu
    Lin, Chaoyang
    Yan, Qiucun
    Chen, Kai
    Ma, Zhuo
    CYBERSECURITY, 2023, 6 (01)
  • [37] Are our clone detectors good enough? An empirical study of code effects by obfuscation
    Weihao Huang
    Guozhu Meng
    Chaoyang Lin
    Qiucun Yan
    Kai Chen
    Zhuo Ma
    Cybersecurity, 6
  • [38] An empirical study of the relationship between the concepts expressed in source code and dependence
    Binkley, David
    Gold, Nicolas
    Harman, Mark
    Li, Zheng
    Mahdavi, Kiarash
    JOURNAL OF SYSTEMS AND SOFTWARE, 2008, 81 (12) : 2287 - 2298
  • [39] Insertion torque is not a good predictor of pedicle screw loosening after spinal instrumentation: a prospective study in 8 patients
    Sanden, Bengt
    Olerud, Claes
    Larsson, Sune
    Robinson, Yohan
    PATIENT SAFETY IN SURGERY, 2010, 4
  • [40] Insertion torque is not a good predictor of pedicle screw loosening after spinal instrumentation: a prospective study in 8 patients
    Bengt Sandén
    Claes Olerud
    Sune Larsson
    Yohan Robinson
    Patient Safety in Surgery, 4 (1)