File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java | File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/types/selectors/ModifiedSelectorTest.java | |||
Method name: void testScenario1()
|
Method name: void _testScenario2()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | performTests(s, "TTTTTTTTTTTT");↵ | 1 | performTests(s, "TTTTTTTTTTTT");↵ | |
2 | //↵ | |||
3 | // ***** Second Run *****↵ | |||
4 | // the second call should get no files, because no content↵ | |||
5 | // has changed↵ | |||
6 | //↵ | |||
7 | performTests(s, "TFFFFFFFFFFT");↵ | 2 | performTests(s, "TFFFFFFFFFFT");↵ | |
8 | //↵ | 3 | //↵ | |
9 | // ***** make some files dirty *****↵ | |||
10 | //↵ | |||
11 | // these files are made dirty --> 3+4 with different content↵ | 4 | make dirty↵ | |
12 | String f2name = "tar/bz2/asf-logo-huge.tar.bz2";↵ | 5 | String f2name = "tar/bz2/asf-logo-huge.tar.bz2";↵ | |
13 | String f3name = "asf-logo.gif.md5";↵ | 6 | String f3name = "asf-logo.gif.md5";↵ | |
14 | String f4name = "copy.filterset.filtered"; | 7 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
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 | 35 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | performTests(s, "TTTTTTTTTTTT"); |
| 13 | performTests(s, "TTTTTTTTTTTT"); | ||||||||||
8 | performTests(s, "TFFFFFFFFFFT"); |
| 14 | performTests(s, "TFFFFFFFFFFT"); | ||||||||||
9 | String f2name = "tar/bz2/asf-logo-huge.tar.bz2"; | 15 | String f2name = "tar/bz2/asf-logo-huge.tar.bz2"; | |||||||||||
10 | String f3name = "asf-logo.gif.md5"; | 16 | String f3name = "asf-logo.gif.md5"; | |||||||||||
11 | String f4name = "copy.filterset.filtered"; | 17 | String f4name = "copy.filterset.filtered"; |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables f2name, f3name, f4name , while Clone fragment #2 returns variables f2name, f3name, f4name |