File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/control/TestInterleaveControl.java | File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/control/TestInterleaveControl.java | |||
Method name: void testProcessing5()
|
Method name: void testProcessing4()
|
|||
Number of AST nodes: 12 | Number of AST nodes: 12 | |||
1 | String[] order = new String[] { "one", "two", "three", "four" };↵ | 1 | String[] order = new String[] { "one", "three", "two", "four" };↵ | |
2 | int counter = 0;↵ | 2 | int counter = 0;↵ | |
3 | controller.setRunningVersion(true);↵ | 3 | controller.setRunningVersion(true);↵ | |
4 | sub_1.setRunningVersion(true);↵ | 4 | sub_1.setRunningVersion(true);↵ | |
5 | sub_2.setRunningVersion(true);↵ | 5 | sub_2.setRunningVersion(true);↵ | |
6 | sub_3.setRunningVersion(true);↵ | 6 | sub_3.setRunningVersion(true);↵ | |
7 | controller.initialize();↵ | 7 | controller.initialize();↵ | |
8 | while (counter < order.length) {↵ | 8 | while (counter < order.length) {↵ | |
9 | TestElement sampler = null;↵ | 9 | TestElement sampler = null;↵ | |
10 | while ((sampler = controller.next()) != null) {↵ | 10 | while ((sampler = controller.next()) != null) {↵ | |
11 | assertEquals("failed on" + counter, order[counter], sampler.getName());↵ | 11 | assertEquals("failed on" + counter, order[counter], sampler.getName());↵ | |
12 | counter++;↵ | 12 | counter++;↵ | |
13 | }↵ | 13 | }↵ | |
14 | } | 14 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 64 |
Number of mapped statements | 12 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 23.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14 | String[] order = new String[] {"one", "two", "three", "four"}; |
| 14 | String[] order = new String[] {"one", "three", "two", "four"}; | |||||||||||||
15 | int counter = 0; | 15 | int counter = 0; | ||||||||||||||
16 | controller.setRunningVersion(true); | 16 | controller.setRunningVersion(true); | ||||||||||||||
17 | sub_1.setRunningVersion(true); | 17 | sub_1.setRunningVersion(true); | ||||||||||||||
18 | sub_2.setRunningVersion(true); | 18 | sub_2.setRunningVersion(true); | ||||||||||||||
19 | sub_3.setRunningVersion(true); | 19 | sub_3.setRunningVersion(true); | ||||||||||||||
20 | controller.initialize(); | 20 | controller.initialize(); | ||||||||||||||
21 | while (counter < order.length) | 21 | while (counter < order.length) | ||||||||||||||
22 | TestElement sampler = null; | 22 | TestElement sampler = null; | ||||||||||||||
23 | while ((sampler = controller.next()) != null) | 23 | while ((sampler = controller.next()) != null) | ||||||||||||||
24 | assertEquals("failed on" + counter, order[counter], sampler.getName()); | 24 | assertEquals("failed on" + counter, order[counter], sampler.getName()); | ||||||||||||||
25 | counter++; | 25 | counter++; |
Row | Violation |
---|