File path: /sql12/test/src/net/sourceforge/squirrel_sql/fw/dialects/SequencePropertyMutabilityTest.java | File path: /sql12/test/src/net/sourceforge/squirrel_sql/fw/dialects/SequencePropertyMutabilityTest.java | |||
Method name: void testMinValue()
|
Method name: void testStartWith()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | classUnderTest.setMinValue(true);↵ | 1 | classUnderTest.setStartWith(true);↵ | |
2 | assertTrue(classUnderTest.isMinValue());↵ | 2 | assertTrue(classUnderTest.isStartWith());↵ | |
3 | ↵ | 3 | ↵ | |
4 | classUnderTest.setMinValue(false);↵ | 4 | classUnderTest.setStartWith(false);↵ | |
5 | assertFalse(classUnderTest.isMinValue()); | 5 | assertFalse(classUnderTest.isStartWith()); | |
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 declared in the same class |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
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 | classUnderTest.setMinValue(true); |
| 1 | classUnderTest.setStartWith(true); | ||||||||||||||
2 | assertTrue(classUnderTest.isMinValue()); |
| 2 | assertTrue(classUnderTest.isStartWith()); | ||||||||||||||
3 | classUnderTest.setMinValue(false); |
| 3 | classUnderTest.setStartWith(false); | ||||||||||||||
4 | assertFalse(classUnderTest.isMinValue()); |
| 4 | assertFalse(classUnderTest.isStartWith()); |
Row | Violation |
---|---|
1 | Expression classUnderTest.setMinValue(true) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression classUnderTest.setStartWith(true) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression classUnderTest.setMinValue(true) is a void method call, and thus it cannot be parameterized |
4 | Expression classUnderTest.setStartWith(true) is a void method call, and thus it cannot be parameterized |
5 | Expression classUnderTest.isMinValue() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression classUnderTest.isStartWith() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression classUnderTest.setMinValue(false) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression classUnderTest.setStartWith(false) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression classUnderTest.setMinValue(false) is a void method call, and thus it cannot be parameterized |
10 | Expression classUnderTest.setStartWith(false) is a void method call, and thus it cannot be parameterized |
11 | Expression classUnderTest.isMinValue() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Expression classUnderTest.isStartWith() cannot be parameterized, because it has dependencies to/from statements that will be extracted |