Modeling and Coverage Analysis of Programs with Exception Handling

E. S. F. Najumudheen, Rajib Mall, Debasis Samanta · 2019

Test coverage analysis of exception handling features is a non-trivial task, since exception handling constructs introduce implicit control flow in programs. In this paper, we present a model-based technique for coverage analysis of exception handling features in object-oriented programs. Our technique is based on our previous work on coverage analysis. We first propose a program model, Augmented Call-based Object-Oriented System Dependence Graph (ACSD), and describe its construction. The ACSD represents the structural aspects of the exception handling mechanism, as well as intra-procedural and inter-procedural exceptional control and data flows. We propose several coverage measures specific to exception handling, and apply coverage-on-the-fly technique to the ACSD to determine those coverage measures. We also present the results of the experiments carried out using a prototype tool to demonstrate the efficacy of our ACSD model and coverage technique.

Read the paper · More papers on PaperTik