File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/selectors/DateSelectorTest.java | File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/selectors/DateSelectorTest.java | |||
Method name: void testSelectionBehaviour()
|
Method name: void testSelectionBehaviour()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 5 | |||
1 | testtime = mirrorfiles[6].lastModified();↵ | |||
2 | s.setMillis(testtime);↵ | 1 | s.setMillis(testtime);↵ | |
3 | s.setWhen(before);↵ | 2 | s.setWhen(after);↵ | |
4 | s.setGranularity(2);↵ | 3 | s.setGranularity(2);↵ | |
5 | results = mirrorSelectionString(s);↵ | 4 | results = mirrorSelectionString(s);↵ | |
6 | assertEquals("TTTTTTTFFFFT", results); | 5 | assertEquals("TFFFFTTTTTTT", results); | |
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 | 30 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
71 | testtime = mirrorfiles[6].lastModified(); | | ||||||||||||
72 | s.setMillis(testtime); | 65 | s.setMillis(testtime); | |||||||||||
73 | s.setWhen(before); |
| 66 | s.setWhen(after); | ||||||||||
74 | s.setGranularity(2); | 67 | s.setGranularity(2); | |||||||||||
75 | results = mirrorSelectionString(s); | 68 | results = mirrorSelectionString(s); | |||||||||||
76 | assertEquals("TTTTTTTFFFFT", results); |
| 69 | assertEquals("TFFFFTTTTTTT", results); |
Row | Violation |
---|