A Novel Approach for Detecting Type-IV Clones in Test Code

被引:0
|
作者
van Bladel, Brent [1 ]
Demeyer, Serge [2 ]
机构
[1] Univ Antwerp, Antwerp, Belgium
[2] Univ Antwerp, Flanders Make Vzw, Antwerp, Belgium
关键词
semantic clones; test code duplication; clone detection;
D O I
10.1109/iwsc.2019.8665855
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The typical structure of unit test code (setup stimulate - verify - teardown) gives rise to duplicated test logic. Researchers have demonstrated the widespread use of syntactic clones in test code, yet if duplicated test code is indeed a problem, then semantic clones may be an issue as well. However, while detecting syntactic similarities can be done relatively easy, semantic similarities are more difficult to find. In this paper we present a novel way of detecting semantic clones by exploiting the unique features present in test code. We demonstrate on the Apache Commons Math Library's test suite that our approach can detect 259 semantic clones, of which only 54 were also detected by NiCad. This confirms that it is both feasible and worthwhile to investigate semantic clones in test code.
引用
收藏
页码:8 / 12
页数:5
相关论文
共 50 条
  • [1] CHARACTERIZATION OF GENOMIC CLONES HARBORING TYPE-IV COLLAGEN
    VILLA, LL
    SANTOS, CLS
    BONJARDIM, CA
    BRENTANI, RR
    ARCHIVOS DE BIOLOGIA Y MEDICINA EXPERIMENTALES, 1986, 19 (02): : R264 - R264
  • [2] ISOLATION OF CDNA CLONES FOR BASAL LAMINA COMPONENTS - TYPE-IV PROCOLLAGEN
    KURKINEN, M
    BARLOW, DP
    HELFMAN, DM
    WILLIAMS, JG
    HOGAN, BLM
    NUCLEIC ACIDS RESEARCH, 1983, 11 (18) : 6199 - 6209
  • [3] TYPE-IV HYPERLIPEMIA
    WETZLER, E
    LANCET, 1975, 2 (7946): : 1218 - 1218
  • [4] TYPE-IV HYPERLIPOPROTEINEMIA
    GRETEN, H
    DEUTSCHE MEDIZINISCHE WOCHENSCHRIFT, 1987, 112 (23) : 941 - 941
  • [5] A comparative study of test code clones and production code clones?
    van Bladel, Brent
    Demeyer, Serge
    JOURNAL OF SYSTEMS AND SOFTWARE, 2021, 176
  • [6] Detecting and Analyzing Code Clones in HDL
    Uemura, Kyohei
    Mori, Akira
    Fujiwara, Kenji
    Choi, Eunjong
    Iida, Hajimu
    2017 IEEE 11TH INTERNATIONAL WORKSHOP ON SOFTWARE CLONES (IWSC), 2017, : 1 - 7
  • [7] Detecting Code Clones in Binary Executables
    Saebjornsen, Andreas
    Willcock, Jeremiah
    Panas, Thomas
    Quinlan, Daniel
    Su, Zhendong
    ISSTA 2009: INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, 2009, : 117 - 127
  • [8] BinClone: Detecting Code Clones in Malware
    Farhadi, Mohammad Reza
    Fung, Benjamin C. M.
    Charland, Philippe
    2014 EIGHTH INTERNATIONAL CONFERENCE ON SOFTWARE SECURITY AND RELIABILITY, 2014, : 78 - 87
  • [9] TYPE-IV HYPERLIPOPROTEINEMIA - EFFECTS OF A CALORIC RESTRICTED TYPE-IV DIET VERSUS PHYSICAL-TRAINING PLUS ISOCALORIC TYPE-IV DIET
    LAMPMAN, RM
    SANTINGA, JT
    BASSETT, DR
    BLOCK, WD
    MERCER, N
    HOOK, DA
    FLORA, JD
    FOSS, ML
    AMERICAN JOURNAL OF CLINICAL NUTRITION, 1980, 33 (06): : 1233 - 1243
  • [10] Urinary type-IV collagen
    Tomino, Y
    TYPE-2 DIABETIC NEPHROPATHY IN JAPAN: FROM BENCH TO BEDSIDE, 2001, 134 : 85 - 87