The Determination of the Uniqueness of Polymorphism in C++

Article Preview

Abstract:

The polymorphism is the one of the main features of the object oriented program. The compiler determines the uniqueness of polymorphism by dynamic binding. In a static source code, there will be one function calling point corresponding to several called functions. As the consequence, there will be many redundant function calling paths. It is the key to improve the efficiency of the path coverage test based function call graph with control logic determining the uniqueness of polymorphism. This paper analyzes the feature of the polymorphism in C++ and proposes an algorithm to determine the uniqueness of polymorphism statically in C++. The algorithm can find the unique called function from the several called functions without running the program. The result shows that the algorithm can obtain the unique called function correctly and eliminate the redundant paths. It improves the testing efficiency and reduces the testing cost.

You might also be interested in these eBooks

Info:

Periodical:

Pages:

2157-2163

Citation:

Online since:

July 2013

Export:

Price:

Permissions CCC:

Permissions PLS:

Сopyright:

© 2013 Trans Tech Publications Ltd. All Rights Reserved

Share:

Citation:

[1] W. E. Howden: Reliability of the Path Analysis Testing Strategy, IEEE Transactions on Software Testing, September 1976, pp.208-215.

DOI: 10.1109/tse.1976.233816

Google Scholar

[2] In Chinese: Ying Tang and Liangxian Xu: Acta Electronica Sinica Vol. 30 No. 12A (2002), p.2163.

Google Scholar

[3] In Chinese: Zhihua Zhang and Yonmin Mu: Acta Electronica Sinica Vol. 38 No. 8 (2010), p.1808.

Google Scholar

[4] Yongmin Mu, Yuhui Zheng, Zhihua Zhang, and Mengting LIU: Chinese Journal of Electronics Vol. 21 No. 2 (2012), p.236.

Google Scholar

[5] Information on http: /blog. csdn. net/blucexi/article/details/1253265.

Google Scholar

[6] Yuhui Zheng, Yongmin Mu, and Zhihua Zhang: Research on the Static Function Call Path Generating Automatically, The 2nd IEEE International Conference on Information management and engineering (ieee icime 2010).

DOI: 10.1109/icime.2010.5478114

Google Scholar