Skip to main content

Table 12 Statement and branch coverage for small applications

From: Testing of aspect-oriented programs: difficulties and lessons learned based on theoretical and practical experience

Application name % diff # # Covered/ % diff # # Covered/
  Covered % Statem. missing Covered % Branches missing
  Statem.    statem. branches    branches
Group A: OO - AO  
1. AbstractFactoryOO 100.0   134 134/0 n/a   n/a n/a
AbstractFactoryAO 100.0 0.0 147 147/0 n/a n/a n/a n/a
2. BooleanOO 87.5   431 377/54 66.7   24 16–8
BooleanAO 85.5 −2.0 532 455/77 70.8 4.2 24 17–7
3. BridgeOO 100.0   120 120/0 100.0   4 4/0
BridgeAO 100.0 0.0 151 151/0 100.0 0.0 4 4/0
4. ChessOO 75.8   955 724/231 63.8   232 148/84
ChessAO 76.8 1.0 964 740/224 65.3 1.5 248 162/86
5. InterpreterOO 92.0   225 207/18 71.4   14 10/4
InterpreterAO 85.5 −6.5 290 248/42 78.6 7.2 14 11/3
6. VendingMachineOO 87.9   321 282/39 87.5   16 14/2
VendingMachineAO 89.1 1.2 366 326/40 80.0 −7.5 5 4/1
Average OO 90.5     77.9    
Average AO 89.5 −1.0    78.9 1.1   
Group B: AO - OO  
8. ATM-logAO 72.7   326 237/89 71.4   14 10/4
ATM-logOO 80.8 0.0 271 219/52 83.3 11.9 12 10/2
9. ChainOfResponsabilityAO 76.7   257 197/60 68.8   16 11/5
ChainOfResponsabilityOO 77.7 1.1 157 122/35 66.7 −2.1 18 12/6
10. FlyweightAO 82.5   120 99/21 87.5   8 7/1
FlyweightOO 85.4 2.9 82 70/12 75.0 -12.5 8 6/2
11. MementoAO 100.0   112 112/0 n/a   n/a n/a
MementoOO 100.0 0.0 44 44/0 n/a n/a n/a n/a
12. ShopSystemAO 85.7   1581 1355/226 75.6   41 31/10
ShopSystemOO 82.6 −3.1 872 720/152 73.8 −1.9 80 59/21
13. TelecomAO 91.8   477 438/39 100.0   20 20/0
TelecomOO 91.6 −0.2 381 349/32 100.0 0.0 20 20/0
Average AO 84.9     67.2    
Average OO 86.3 1.4    66.5 −0.8