TestData td = TESTDATA[idx];
String theFile = td.file;
boolean expect = td.exclpatt;
assertEquals(!expect, testf.isFiltered(theFile,null));
String line = testf.filter(theFile);
if (line != null) {
assertTrue("Expect to accept " + theFile, expect);
} else {
assertFalse("Expect to reject " + theFile, expect);
}
TestData td = TESTDATA[idx];
String theFile = td.file;
boolean expect = td.inclpatt;
assertEquals(!expect, testf.isFiltered(theFile,null));
String line = testf.filter(theFile);
if (line != null) {
assertTrue("Expect to accept " + theFile, expect);
} else {
assertFalse("Expect to reject " + theFile, expect);
}
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/util/accesslog/TestLogFilter.java
|
|
File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/util/accesslog/TestLogFilter.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | TestData td = TESTDATA[idx];↵ | | 1 | TestData td = TESTDATA[idx];↵
|
2 | String theFile = td.file;↵ | | 2 | String theFile = td.file;↵
|
3 | boolean expect = td.exclpatt;↵ | | 3 | boolean expect = td.inclpatt;↵
|
|
4 | assertEquals(!expect, testf.isFiltered(theFile,null));↵ | | 4 | assertEquals(!expect, testf.isFiltered(theFile,null));↵
|
5 | String line = testf.filter(theFile);↵ | | 5 | String line = testf.filter(theFile);↵
|
6 | if (line != null) {↵ | | 6 | if (line != null) {↵
|
7 | assertTrue("Expect to accept " + theFile, expect);↵ | | 7 | assertTrue("Expect to accept " + theFile, expect);↵
|
8 | } else {↵ | | 8 | } else {↵
|
9 | assertFalse("Expect to reject " + theFile, expect);↵ | | 9 | assertFalse("Expect to reject " + theFile, expect);↵
|
10 | } | | 10 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |