File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/PathTest.java | File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/PathTest.java | |||
Method name: void testAppending()
|
Method name: void testUnique()
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | l = p.list();↵ | 1 | l = p.list();↵ | |
2 | assertEquals("3 after setLocation", 3, l.length);↵ | 2 | assertEquals("1 after setLocation", 1, l.length);↵ | |
3 | p.setPath("\\d;\\e");↵ | 3 | p.setPath("\\a;/a");↵ | |
4 | l = p.list();↵ | 4 | l = p.list();↵ | |
5 | assertEquals("5 after setPath", 5, l.length);↵ | 5 | assertEquals("1 after setPath", 1, l.length);↵ | |
6 | p.append(new Path(project, "\\f"));↵ | 6 | p.append(new Path(project, "/a;\\a:\\a"));↵ | |
7 | l = p.list();↵ | 7 | l = p.list();↵ | |
8 | assertEquals("6 after append", 6, l.length); | 8 | assertEquals("1 after append", 1, l.length); | |
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 | 34 |
Number of mapped statements | 8 |
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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | l = p.list(); | 6 | l = p.list(); | ||||||||||||||
6 | assertEquals("3 after setLocation", 3, l.length); |
| 7 | assertEquals("1 after setLocation", 1, l.length); | |||||||||||||
7 | p.setPath("\\d;\\e"); |
| 8 | p.setPath("\\a;/a"); | |||||||||||||
8 | l = p.list(); | 9 | l = p.list(); | ||||||||||||||
9 | assertEquals("5 after setPath", 5, l.length); |
| 10 | assertEquals("1 after setPath", 1, l.length); | |||||||||||||
10 | p.append(new Path(project, "\\f")); |
| 11 | p.append(new Path(project, "/a;\\a:\\a")); | |||||||||||||
11 | l = p.list(); | 12 | l = p.list(); | ||||||||||||||
12 | assertEquals("6 after append", 6, l.length); |
| 13 | assertEquals("1 after append", 1, l.length); |
Row | Violation |
---|