Towards a Comprehensive Test Suite for Detectors of Design Patterns

被引:0
|
作者
Wegrzynowicz, Patrycja [1 ]
Stencel, Krzysztof [2 ]
机构
[1] NASK Res & Acad Comp Network, Software R&D Dept, Warsaw, Poland
[2] Warsaw Univ, Inst Informat, Warsaw, Poland
来源
2009 IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, PROCEEDINGS | 2009年
关键词
test suite; design patterns; detection;
D O I
10.1109/ASE.2009.85
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Detection of design patterns is an important part of reverse engineering. Availability of patterns provides for a better understanding of code and also makes analysis more efficient in terms of time and cost. In recent years, we have observed a continual improvement in the field of automatic detection of design patterns in source code. Existing approaches can detect a fairly broad range of design patterns, targeting both structural and behavioral aspects of patterns. However, it is not straightforward to assess and compare these approaches. There is no common ground on which to evaluate the accuracy of the detection approaches, given the existence of variants and specific code constructs used to implement a design pattern. We propose a systematic approach to constructing a comprehensive test suite for detectors of design patterns. This approach is applied to construct a test suite covering the Singleton pattern. The test suite contains many implementation variants of these patterns, along with such code constructs as method forwarding, access modifiers, and long inheritance paths. Furthermore, we use this test suite to compare three detection tools and to identify their strengths and weaknesses.
引用
收藏
页码:103 / 110
页数:8
相关论文
共 50 条
  • [31] Towards Design Patterns for Ontology Alignment
    Scharffe, Francois
    Euzenat, Jerome
    Fensel, Dieter
    APPLIED COMPUTING 2008, VOLS 1-3, 2008, : 2321 - +
  • [32] Towards software design automation with patterns
    Sikici, A.
    Topaloglu, N.Y.
    Informatica (Ljubljana), 2001, 25 (03) : 309 - 317
  • [33] Design of a test suite for the jumpstart just-in-time signaling protocol
    Zaim, AH
    OPTICA APPLICATA, 2005, 35 (02) : 333 - 345
  • [34] Test suite oscillations
    Nikolik, B
    INFORMATION PROCESSING LETTERS, 2006, 98 (02) : 47 - 55
  • [35] Towards systematic grammar profiling. Test suite technology 10 years after
    Oepen, S
    Flickinger, DP
    COMPUTER SPEECH AND LANGUAGE, 1998, 12 (04): : 411 - 435
  • [36] Towards Generating Cost-Effective Test-Suite for Ethereum Smart Contract
    Wang, Xingya
    Wu, Haoran
    Sun, Weisong
    Zhao, Yuan
    2019 IEEE 26TH INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING (SANER), 2019, : 549 - 553
  • [37] Towards systematic grammar profiling. Test suite technology 10 years after
    Saarbruecken Univ, Saarbruecken, Germany
    Comput Speech Lang, 4 (411-435):
  • [38] Towards a Comprehensive Model for the Impact of Traffic Patterns on Air Pollution
    Balzotti, Caterina
    Briani, Maya
    de Filippo, Barbara
    Piccoli, Benedetto
    PROCEEDINGS OF THE 6TH INTERNATIONAL CONFERENCE ON VEHICLE TECHNOLOGY AND INTELLIGENT TRANSPORT SYSTEMS (VEHITS), 2020, : 221 - 228
  • [39] Towards a comprehensive collection of diagnostic patterns for protein sequence classification
    Olsson, B
    Laurio, K
    INFORMATION SCIENCES, 2002, 143 (1-4) : 1 - 11
  • [40] Design, construction, and test of the Gas Pixel Detectors for the IXPE mission
    Baldini, L.
    Barbanera, M.
    Bellazzini, R.
    Bonino, R.
    Borotto, F.
    Brez, A.
    Caporale, C.
    Cardelli, C.
    Castellano, S.
    Ceccanti, M.
    Citraro, S.
    Di Lalla, N.
    Latronico, L.
    Lucchesi, L.
    Magazzu, C.
    Magazzu, G.
    Maldera, S.
    Manfreda, A.
    Marengo, M.
    Marrocchesi, A.
    Mereu, P.
    Minuti, M.
    Mosti, F.
    Nasimi, H.
    Nuti, A.
    Oppedisano, C.
    Orsini, L.
    Pesce-Rollins, M.
    Pinchera, M.
    Profeti, A.
    Sgro, C.
    Spandre, G.
    Tardiola, M.
    Zanetti, D.
    Amici, F.
    Andersson, H.
    Attina, P.
    Bachetti, M.
    Baumgartner, W.
    Brienza, D.
    Carpentiero, R.
    Castronuovo, M.
    Cavalli, L.
    Cavazzuti, E.
    Centrone, M.
    Costa, E.
    D'Alba, E.
    D'Amico, F.
    Del Monte, E.
    Di Cosimo, S.
    ASTROPARTICLE PHYSICS, 2021, 133