File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/control/TestWhileController.java | File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/control/TestSwitchController.java | |||
Method name: void testVariable2()
|
Method name: void runSimpleTest(String, String)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | while_cont.addTestElement(new TestSampler("three"));↵ | 1 | switch_cont.addTestElement(new TestSampler("two"));↵ | |
2 | while_cont.addTestElement(new TestSampler("four"));↵ | 2 | switch_cont.addTestElement(new TestSampler("three"));↵ | |
3 | controller.addTestElement(new TestSampler("after"));↵ | 3 | controller.addTestElement(new TestSampler("after"));↵ | |
4 | controller.initialize(); | 4 |
| |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15 | while_cont.addTestElement(new TestSampler("three")); |
| 8 | switch_cont.addTestElement(new TestSampler("two")); | ||||||||||||||||
16 | while_cont.addTestElement(new TestSampler("four")); |
| 9 | switch_cont.addTestElement(new TestSampler("three")); | ||||||||||||||||
17 | controller.addTestElement(new TestSampler("after")); | 10 | controller.addTestElement(new TestSampler("after")); | |||||||||||||||||
18 | controller.initialize(); | 11 | controller.initialize(); |
Row | Violation |
---|