File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/MapperTest.java | File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/MapperTest.java | |||
Method name: void testNested()
|
Method name: void testChained()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | String[] targets = fileNameMapper.mapFileName("fromfilename");↵ | 1 | String[] targets = fileNameMapper.mapFileName("a");↵ | |
2 | assertNotNull("no filenames mapped", targets);↵ | 2 | assertNotNull("no filenames mapped", targets);↵ | |
3 | assertEquals("wrong number of filenames mapped", 3, targets.length);↵ | 3 | assertEquals("wrong number of filenames mapped", 2, targets.length);↵ | |
4 | List list = Arrays.asList(targets); | 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 declared in the same 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 | String[] targets = fileNameMapper.mapFileName("fromfilename"); |
| 22 | String[] targets = fileNameMapper.mapFileName("a"); | ||||||||||
16 | assertNotNull("no filenames mapped", targets); | 23 | assertNotNull("no filenames mapped", targets); | |||||||||||
17 | assertEquals("wrong number of filenames mapped", 3, targets.length); |
| 24 | assertEquals("wrong number of filenames mapped", 2, targets.length); | ||||||||||
18 | List list = Arrays.asList(targets); | 25 | List list = Arrays.asList(targets); |
Row | Violation |
---|