File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/BriefJUnitResultFormatter.java | File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/junit/SummaryJUnitResultFormatter.java | |||
Method name: void endTestSuite(JUnitTest)
|
Method name: void endTestSuite(JUnitTest)
|
|||
Number of AST nodes: 10 | Number of AST nodes: 10 | |||
1 | StringBuffer sb = new StringBuffer("Tests run: ");↵ | 1 | StringBuffer sb = new StringBuffer("Tests run: ");↵ | |
2 | sb.append(suite.runCount());↵ | 2 | sb.append(suite.runCount());↵ | |
3 | sb.append(", Failures: ");↵ | 3 | sb.append(", Failures: ");↵ | |
4 | sb.append(suite.failureCount());↵ | 4 | sb.append(suite.failureCount());↵ | |
5 | sb.append(", Errors: ");↵ | 5 | sb.append(", Errors: ");↵ | |
6 | sb.append(suite.errorCount());↵ | 6 | sb.append(suite.errorCount());↵ | |
7 | sb.append(", Time elapsed: ");↵ | 7 | sb.append(", Time elapsed: ");↵ | |
8 | sb.append(numberFormat.format(suite.getRunTime() / 1000.0));↵ | 8 | sb.append(nf.format(suite.getRunTime() / 1000.0));↵ | |
9 | sb.append(" sec");↵ | 9 | sb.append(" sec");↵ | |
10 | sb.append(StringUtils.LINE_SEP); | 10 | sb.append(newLine); | |
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 different classes |
Number of node comparisons | 100 |
Number of mapped statements | 10 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | StringBuffer sb = new StringBuffer("Tests run: "); | 2 | StringBuffer sb = new StringBuffer("Tests run: "); | |||||||||||
2 | sb.append(suite.runCount()); | 3 | sb.append(suite.runCount()); | |||||||||||
3 | sb.append(", Failures: "); | 4 | sb.append(", Failures: "); | |||||||||||
4 | sb.append(suite.failureCount()); | 5 | sb.append(suite.failureCount()); | |||||||||||
5 | sb.append(", Errors: "); | 6 | sb.append(", Errors: "); | |||||||||||
6 | sb.append(suite.errorCount()); | 7 | sb.append(suite.errorCount()); | |||||||||||
7 | sb.append(", Time elapsed: "); | 8 | sb.append(", Time elapsed: "); | |||||||||||
8 | sb.append(numberFormat.format(suite.getRunTime() / 1000.0)); |
| 9 | sb.append(nf.format(suite.getRunTime() / 1000.0)); | ||||||||||
9 | sb.append(" sec"); | 10 | sb.append(" sec"); | |||||||||||
10 | sb.append(StringUtils.LINE_SEP); |
| 11 | sb.append(newLine); |
Row | Violation |
---|