• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2005, Vol. 27 ›› Issue (8): 65-69.

• 论文 • 上一篇    下一篇

面向对象类簇级测试中控制依赖分析方法研究

毛澄映 卢炎生   

  • 出版日期:2005-08-01 发布日期:2010-07-03

  • Online:2005-08-01 Published:2010-07-03

摘要:

类簇控制依赖信息是进行类间数据流测试的基础。本文通过克服已有类控制流分析的不足之处,提出了CCFG算法,依照类间测试序,通过分析继承、聚集和关联等类间关系特  征进而增量式地构造类间控制流图(ICCFG算法),并初步探讨了动态控制依赖分析方法。实验表明,上述控制流分析方法可方便地用于类间数据流测试,并能有效地探测定 义一使用错误。

关键词: 类控制流图CCFG 类间控制流图ICCFG 类间关系 数据流测试

Abstract:

The control dependency information of class cluster is the foundation of inter-class dataflow testing. This paper presents a new CCFG algorithm by ove rcoming some defects of the existing class control flow analysis approaches. According to the inter-class test order, we incrementally construct the int  er-class control flow graph by analyzing the characteristics of class relationships such as inheritance, aggregation and association, and propose an alg orithm named ICCFG. We also preliminarily discuss the methods of dynamic control dependency analysis. Empirical results show that such approaches for co ntrol flow analysis can be expediently used for dataflow testing and can effectively detect the du-pair faults.

Key words: (class control flow graph, inter-class control flow graph class relationship, dataflow testing)