File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/functions/PackageTest.java | File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/functions/PackageTest.java | |||
Method name: void sumTest()
|
Method name: void sumTest()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | String maxIntVal = Integer.toString(Integer.MAX_VALUE);↵ | 1 | String maxLongVal = Long.toString(Long.MAX_VALUE);↵ | |
2 | String minIntVal = Integer.toString(Integer.MIN_VALUE);↵ | 2 | String minLongVal = Long.toString(Long.MIN_VALUE);↵ | |
3 | checkSum(is,maxIntVal, new String[]{maxIntVal,"0"});↵ | 3 | checkSum(ls,maxLongVal, new String[]{maxLongVal,"0"});↵ | |
4 | checkSum(is,minIntVal, new String[]{maxIntVal,"1"}); | 4 | checkSum(ls,minLongVal, new String[]{maxLongVal,"1"}); | |
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 the same method |
Number of node comparisons | 16 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | String maxIntVal = Integer.toString(Integer.MAX_VALUE); | | |||||||||||||||||||||
8 | String minIntVal = Integer.toString(Integer.MIN_VALUE); | | |||||||||||||||||||||
| 21 | String maxLongVal = Long.toString(Long.MAX_VALUE); | |||||||||||||||||||||
| 22 | String minLongVal = Long.toString(Long.MIN_VALUE); | |||||||||||||||||||||
9 | checkSum(is, maxIntVal, new String[] {maxIntVal, "0"}); |
| 23 | checkSum(ls, maxLongVal, new String[] {maxLongVal, "0"}); | |||||||||||||||||||
10 | checkSum(is, minIntVal, new String[] {maxIntVal, "1"}); |
| 24 | checkSum(ls, minLongVal, new String[] {maxLongVal, "1"}); |
Row | Violation |
---|