2011
DOI: 10.1007/978-3-642-23716-4_19
|View full text |Cite
|
Sign up to set email alerts
|

Divide-by-Zero Exception Raising via Branch Coverage

Abstract: Abstract. In this paper, we discuss how a search-based branch coverage approach can be used to design an effective test data generation approach, specifically targeting divide-by-zero exceptions. We first propose a novel testability transformation combining approach level and branch distance. We then use different search strategies, i.e., hill climbing, simulated annealing, and genetic algorithm, to evaluate the performance of the novel testability transformation on a small synthetic example as well as on meth… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1
1
1

Citation Types

0
5
0

Year Published

2012
2012
2024
2024

Publication Types

Select...
3
3
1

Relationship

0
7

Authors

Journals

citations
Cited by 7 publications
(5 citation statements)
references
References 13 publications
(30 reference statements)
0
5
0
Order By: Relevance
“…It is also possible to represent arithmetic errors such as division by zero faults as branches in the source code, such that traditional SBST metrics such as the branch distance can optimize towards these errors [8]. In this paper, we also add new branches to the code that represent error conditions; however, in real-world software the number of such conditions may be so large that it becomes an issue of scalability for the traditional approach of targeting one branch at a time.…”
Section: Sbst and Automated Oraclesmentioning
confidence: 99%
See 1 more Smart Citation
“…It is also possible to represent arithmetic errors such as division by zero faults as branches in the source code, such that traditional SBST metrics such as the branch distance can optimize towards these errors [8]. In this paper, we also add new branches to the code that represent error conditions; however, in real-world software the number of such conditions may be so large that it becomes an issue of scalability for the traditional approach of targeting one branch at a time.…”
Section: Sbst and Automated Oraclesmentioning
confidence: 99%
“…This has for example been done for division by zero errors [8] or null pointer exceptions [38]. In the following, we describe several transformations implemented in the EVOSUITE tool; some transformations are similar to the additional constraints that are added to DSE when applying Active Property Checking [23] (division by zero, array bounds, null pointer dereference).…”
Section: Testability Transformationmentioning
confidence: 99%
“…There have been attempts to make such implicit error conditions explicit to allow test generation tools to cover these cases (e.g., [2,10]), Pex also makes these branches explicit [12], and SAGE includes such conditions in the properties it checks for [6]. If the test generation tool does not already have treatment of error conditions hard coded, these can easily be represented as path condition augmentation rules.…”
Section: Error Conditionsmentioning
confidence: 98%
“…To apply the existing techniques to different target criteria, a common approach is to transform these other criteria to branch coverage problems. This has for example been done for division by zero errors [2], null pointer exceptions [10], mutation testing [14], or boundary value analysis and logical coverage criteria [9]. Here, additional test objectives are explicitly included in the program code in terms of new branch instructions, such that existing tools that are already good at achieving branch coverage can be reused.…”
Section: Introductionmentioning
confidence: 98%
“…Bhattacharya et al presented a novel testability transformation to generate test input data to raise divide-by-zero exceptions in software systems [39]. Their testability transformation is based on both approach level and branch distance.…”
Section: Test Data Generation With Faults Detectionmentioning
confidence: 99%