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: 5 | Number of AST nodes: 5 | |||
1 | s.setMillis(testtime);↵ | 1 | s.setMillis(testtime);↵ | |
2 | s.setWhen(after);↵ | 2 | s.setWhen(before);↵ | |
3 | s.setGranularity(2);↵ | 3 | s.setGranularity(2);↵ | |
4 | results = mirrorSelectionString(s);↵ | 4 | results = mirrorSelectionString(s);↵ | |
5 | assertEquals("TFFFFTTTTTTT", results); | 5 | assertEquals("TTTTTTTFFFFT", 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 | 25 |
Number of mapped statements | 5 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
65 | s.setMillis(testtime); | 72 | s.setMillis(testtime); | |||||||||||
66 | s.setWhen(after); |
| 73 | s.setWhen(before); | ||||||||||
67 | s.setGranularity(2); | 74 | s.setGranularity(2); | |||||||||||
68 | results = mirrorSelectionString(s); | 75 | results = mirrorSelectionString(s); | |||||||||||
69 | assertEquals("TFFFFTTTTTTT", results); |
| 76 | assertEquals("TTTTTTTFFFFT", results); |
Row | Violation |
---|